Skip to content

Commit 1aeec92

Browse files
committed
feat: GHA to deploy new image to Cloud Run
1 parent 03e4765 commit 1aeec92

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.cloudbuild/deploy-sequencer-prod.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Deploys an image to Cloud Run that already exists as part of a previous step.
12
steps:
23
# Deploy container image to Cloud Run
34
- name: "gcr.io/google.com/cloudsdktool/cloud-sdk"

.github/workflows/publish-image-sequencer-multiple-registries.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ jobs:
6262
type=raw,value=latest,enable=true
6363
# TODO change me back to enable={{is_default_branch}}
6464

65-
6665
- name: Build and push
6766
uses: docker/build-push-action@v6
6867
with:
@@ -73,4 +72,13 @@ jobs:
7372
tags: ${{ steps.meta.outputs.tags }}
7473
labels: ${{ steps.meta.outputs.labels }}
7574
cache-from: type=gha
76-
cache-to: type=gha,mode=max
75+
cache-to: type=gha,mode=max
76+
77+
# Trigger Cloud Run here to prevent race condition
78+
- name: Trigger Cloud Run Deployment
79+
# TODO add in below: && github.ref == 'refs/heads/main'
80+
if: success()
81+
run: |
82+
gcloud builds triggers run deploy-metabased-sequencer \
83+
--region=europe-west6 \
84+
--project=metabased-testnet

0 commit comments

Comments
 (0)