File tree 1 file changed +24
-0
lines changed 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -482,6 +482,27 @@ jobs:
482
482
./build/*.deb
483
483
retention-days : 7
484
484
485
+ deploy-wsproxies :
486
+ runs-on : ubuntu-latest
487
+ needs : build-main-image
488
+ if : github.ref == 'refs/heads/main' && !github.event.pull_request.head.repo.fork
489
+ steps :
490
+ - name : Checkout
491
+ uses : actions/checkout@v4
492
+ with :
493
+ fetch-depth : 0
494
+
495
+ - name : Setup flyctl
496
+ uses : superfly/flyctl-actions/setup-flyctl@master
497
+
498
+ - name : Deploy workspace proxies
499
+ run : |
500
+ flyctl deploy --image ghcr.io/coder/coder-preview:main --app paris-coder -y
501
+ flyctl deploy --image ghcr.io/coder/coder-preview:main --app sydney-coder -y
502
+ flyctl deploy --image ghcr.io/coder/coder-preview:main --app sao-paulo-coder -y
503
+ env :
504
+ FLY_API_TOKEN : ${{ secrets.FLY_API_TOKEN }}
505
+
485
506
test-js :
486
507
runs-on : ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
487
508
needs : changes
@@ -772,6 +793,9 @@ jobs:
772
793
docker tag ghcr.io/coder/coder-preview:main ghcr.io/coder/coder-preview:main-$tag
773
794
docker push ghcr.io/coder/coder-preview:main-$tag
774
795
796
+ # save the image as output
797
+ echo "image=ghcr.io/coder/coder-preview:main-$tag" >> $GITHUB_ENV
798
+
775
799
- name : Prune old images
776
800
uses : vlaurin/action-ghcr-prune@v0.5.0
777
801
with :
You can’t perform that action at this time.
0 commit comments