Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 22a8b26

Browse files
authored
chore: add deploy script (#15)
Helps close out https://github.com/coder/internal/milestone/10 ## Changes made - Added `deploy-registry.yaml` workflow
1 parent 1f7df79 commit 22a8b26

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: deploy-registry
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
# Matches release/<namespace>/<resource_name>/<semantic_version>
9+
# (e.g., "release/whizus/exoscale-zone/v1.0.13")
10+
- "release/*/*/v*.*.*"
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
16+
# Set id-token permission for gcloud
17+
permissions:
18+
contents: read
19+
id-token: write
20+
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v4
24+
- name: Authenticate with Google Cloud
25+
uses: google-github-actions/auth@71f986410dfbc7added4569d411d040a91dc6935
26+
with:
27+
workload_identity_provider: projects/309789351055/locations/global/workloadIdentityPools/github-actions/providers/github
28+
service_account: [email protected]
29+
- name: Set up Google Cloud SDK
30+
uses: google-github-actions/setup-gcloud@77e7a554d41e2ee56fc945c52dfd3f33d12def9a
31+
# For the time being, let's have the first couple merges to main in
32+
# modules deploy a new version to *dev*. Once we review and make sure
33+
# everything's working, we can deploy a new version to *main*. Maybe in
34+
# the future we could automate this based on the result of E2E tests.
35+
- name: Deploy to dev.registry.coder.com
36+
run: gcloud builds triggers run 29818181-126d-4f8a-a937-f228b27d3d34 --branch dev

0 commit comments

Comments
 (0)