Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 58ab394

Browse files
committed
use github action instead of script to run new builds
1 parent ee83bb2 commit 58ab394

File tree

3 files changed

+18
-47
lines changed

3 files changed

+18
-47
lines changed

.github/scripts/deploy-registry.sh

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/deploy-registry.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,26 @@ on:
55
branches:
66
- main
77

8-
pull_request:
9-
workflow_dispatch:
10-
118
jobs:
129
deploy:
1310
runs-on: ubuntu-latest
1411
steps:
1512
- name: Checkout repository
1613
uses: actions/checkout@v4
1714

18-
- name: Run deploy-registry.sh
15+
- name: Authenticate to Google Cloud
16+
uses: google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f
17+
with:
18+
workload_identity_provider: projects/309789351055/locations/global/workloadIdentityPools/github-actions/providers/github
19+
service_account: [email protected]
20+
21+
- name: Set up Google Cloud SDK
22+
uses: google-github-actions/setup-gcloud@6189d56e4096ee891640bb02ac264be376592d6a
23+
24+
# For the time being, let's have the first couple merges to main in modules deploy a new version
25+
# to *dev*. Once we review and make sure everything's working, we can deploy a new version to *main*.
26+
# Maybe in the future we could automate this based on the result of E2E tests.
27+
- name: Deploy to dev.registry.coder.com
1928
run: |
20-
./.github/scripts/deploy-registry.sh
21-
env:
22-
GCLOUD_API_KEY: ${{ secrets.GCLOUD_API_KEY }}
23-
GCLOUD_PROD_DEPLOY_SECRET: ${{ secrets.GCLOUD_PROD_DEPLOY_SECRET }}
24-
GCLOUD_DEV_DEPLOY_SECRET: ${{ secrets.GCLOUD_DEV_DEPLOY_SECRET }}
29+
gcloud builds triggers run 29818181-126d-4f8a-a937-f228b27d3d34 --branch dev
2530

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
.terraform*
22
node_modules
33
*.tfstate
4-
*.tfstate.lock.info
4+
*.tfstate.lock.info
5+
6+
# Ignore generated credentials from google-github-actions/auth
7+
gha-creds-*.json

0 commit comments

Comments
 (0)