Skip to content

Commit

Permalink
stable cadence deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
nialexsan committed Jan 23, 2024
1 parent 26cd9b2 commit 70fcd19
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: "Deploy to Cloud Run"

on:
push:
branches:
- v2
# branches:
# - v2

env:
DOCKER_IMAGE_URL: ${{ vars.GCP_DOCKER_IMAGE_URL }}:${{ github.sha }}
Expand Down Expand Up @@ -85,3 +85,26 @@ jobs:
with:
service: ${{ vars.GCP_SERVICE }}
image: ${{ env.DOCKER_IMAGE_URL }}

deploy-stable-cadence-staging:
needs: [build]
environment: stable-cadence-staging
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Google auth
id: auth
uses: google-github-actions/auth@v2
with:
token_format: 'access_token'
workload_identity_provider: ${{ vars.DEPLOYER_GCP_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ vars.DEPLOYER_SERVICE_ACCOUNT }}
- name: Deploy to Cloud Run
uses: google-github-actions/deploy-cloudrun@v1
with:
service: ${{ vars.GCP_SERVICE }}
image: ${{ env.DOCKER_IMAGE_URL }}

0 comments on commit 70fcd19

Please sign in to comment.