Skip to content

Commit

Permalink
Merge pull request #272 from Hi-Fi/fix/prod_traffic
Browse files Browse the repository at this point in the history
fix: all traffic to prod deployed revision explicitly
  • Loading branch information
Hi-Fi committed Feb 12, 2023
2 parents 971bd30 + 20bac42 commit b8661fc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/go_cloud_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ jobs:
image: ${{env.IMAGE_NAME}}:${{env.IMAGE_TAG}}
region: europe-north1
suffix: ${{env.IMAGE_TAG}}
revision_traffic: ${{ inputs.application-name }}-${{env.IMAGE_TAG}}=100
env_vars: |
JWT_SECRET_KEY=${{ secrets.DEV_JWT_SECRET_KEY }}
- name: Move traffic to new revision
id: migrate_traffic_prod
uses: google-github-actions/deploy-cloudrun@194392f9d796cd42b2617a231eec28e08f9e27e1 # tag=v1.0.0
with:
region: europe-north1
service: ${{ inputs.application-name }}
revision_traffic: ${{ inputs.application-name }}-${{env.IMAGE_TAG}}=100

0 comments on commit b8661fc

Please sign in to comment.