@@ -862,62 +862,6 @@ jobs:
862862 TOKEN_SYDNEY : ${{ secrets.FLY_SYDNEY_CODER_PROXY_SESSION_TOKEN }}
863863 TOKEN_SAO_PAULO : ${{ secrets.FLY_SAO_PAULO_CODER_PROXY_SESSION_TOKEN }}
864864
865- deploy-legacy-proxies :
866- runs-on : ubuntu-latest
867- timeout-minutes : 30
868- needs : build
869- if : github.ref == 'refs/heads/main' && !github.event.pull_request.head.repo.fork
870- permissions :
871- contents : read
872- id-token : write
873- steps :
874- - name : Authenticate to Google Cloud
875- uses : google-github-actions/auth@v2
876- with :
877- workload_identity_provider : projects/573722524737/locations/global/workloadIdentityPools/github/providers/github
878- service_account : coder-ci@coder-dogfood.iam.gserviceaccount.com
879-
880- - name : Set up Google Cloud SDK
881- uses : google-github-actions/setup-gcloud@v2
882-
883- - name : Download build artifacts
884- uses : actions/download-artifact@v4
885- with :
886- name : coder
887- path : ./build
888-
889- - name : Install Release
890- run : |
891- set -euo pipefail
892-
893- regions=(
894- # gcp-region-id instance-name systemd-service-name
895- "australia-southeast1-b coder-sydney coder-workspace-proxy"
896- "europe-west3-c coder-europe coder-workspace-proxy"
897- "southamerica-east1-b coder-brazil coder-workspace-proxy"
898- )
899-
900- deb_pkg=$(find ./build -name "coder_*_linux_amd64.deb" -print -quit)
901- if [ -z "$deb_pkg" ]; then
902- echo "deb package $deb_pkg not found"
903- ls -l ./build
904- exit 1
905- fi
906-
907- gcloud config set project coder-dogfood
908- for region in "${regions[@]}"; do
909- echo "::group::$region"
910- set -- $region
911-
912- set -x
913- gcloud config set compute/zone "$1"
914- gcloud compute scp "$deb_pkg" "${2}:/tmp/coder.deb"
915- gcloud compute ssh "$2" -- /bin/sh -c "set -eux; sudo dpkg -i --force-confdef /tmp/coder.deb; sudo systemctl daemon-reload; sudo service '$3' restart"
916- set +x
917-
918- echo "::endgroup::"
919- done
920-
921865 # sqlc-vet runs a postgres docker container, runs Coder migrations, and then
922866 # runs sqlc-vet to ensure all queries are valid. This catches any mistakes
923867 # in migrations or sqlc queries that makes a query unable to be prepared.
0 commit comments