Skip to content

chore: deploy workspace proxies on fly.io #10983

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Dec 4, 2023
21 changes: 21 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,27 @@ jobs:
set -euxo pipefail
kubectl --namespace coder rollout restart deployment/coder
kubectl --namespace coder rollout status deployment/coder

deploy-wsproxies:
runs-on: ubuntu-latest
needs: build
if: !github.event.pull_request.head.repo.fork
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup flyctl
uses: superfly/flyctl-actions/setup-flyctl@master

- name: Deploy workspace proxies
run: |
flyctl deploy --image ghcr.io/coder/coder-preview:main --app paris-coder -y
flyctl deploy --image ghcr.io/coder/coder-preview:main --app sydney-coder -y
flyctl deploy --image ghcr.io/coder/coder-preview:main --app sao-paulo-coder -y
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

# TODO: when we remove this, instead of removing it we need to change it so it
# still upgrades workspace proxies which are not deployed on K8s
Expand Down