## Changes made - Updated the `deploy-registry` script to include steps for pushing to the production registry
36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
name: deploy-registry
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags:
|
|
# Matches release/<namespace>/<resource_name>/<semantic_version>
|
|
# (e.g., "release/whizus/exoscale-zone/v1.0.13")
|
|
- "release/*/*/v*.*.*"
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
# Set id-token permission for gcloud
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
- name: Authenticate with Google Cloud
|
|
uses: google-github-actions/auth@ba79af03959ebeac9769e648f473a284504d9193
|
|
with:
|
|
workload_identity_provider: projects/309789351055/locations/global/workloadIdentityPools/github-actions/providers/github
|
|
service_account: registry-v2-github@coder-registry-1.iam.gserviceaccount.com
|
|
- name: Set up Google Cloud SDK
|
|
uses: google-github-actions/setup-gcloud@77e7a554d41e2ee56fc945c52dfd3f33d12def9a
|
|
- name: Deploy to dev.registry.coder.com
|
|
run: gcloud builds triggers run 29818181-126d-4f8a-a937-f228b27d3d34 --branch dev
|
|
- name: Deploy to registry.coder.com
|
|
run: |
|
|
gcloud builds triggers run 106610ff-41fb-4bd0-90a2-7643583fb9c0 --branch main
|