Skip to content

Commit b755af6

Browse files
authored
Merge pull request #144 from chasinandrew/develop
Develop
2 parents e300fed + 3ea14d6 commit b755af6

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/_deployment.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
docker push "${{ vars.region }}-docker.pkg.dev/${{ vars.artifact_registry_project }}/${{ vars.artifact_registry_repo }}/${{ vars.service_name }}:latest"
109109
110110
deploy:
111-
if: contains(fromJSON('["develop", "main"]'), github.ref_name)
111+
if: contains(fromJSON('["develop", "main"]'), github.ref_name) && github.event == 'push'
112112
name: "Cloud Run Deployment"
113113
runs-on: ubuntu-latest
114114
environment: ${{ inputs.environment }}
@@ -129,7 +129,6 @@ jobs:
129129
service_account: '${{ secrets.WIF_SERVICE_ACCOUNT }}' # e.g. - my-service-account@my-project.iam.gserviceaccount.com
130130

131131
- name: Create Service ${{ inputs.environment }} Declaration
132-
if: inputs.environment == 'dev' || inputs.environment == 'qa'
133132
run: |-
134133
export CONTAINER_IMAGE="${{ vars.region }}-docker.pkg.dev/${{ vars.artifact_registry_project }}/${{ vars.artifact_registry_repo }}/${{ vars.service_name }}:${{ github.sha }}"
135134
export SERVICE_NAME="${{ vars.service_name }}"
@@ -148,7 +147,6 @@ jobs:
148147
149148
- name: Deploy to ${{ inputs.environment }} Cloud Run
150149
id: deploy-dev-qa
151-
if: github.event == 'push'
152150
uses: google-github-actions/deploy-cloudrun@v0
153151
with:
154152
project_id: ${{ vars.gcp_project_id }}

.github/workflows/deployment-prod-canary.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ on:
2727
required: true
2828
default: '90'
2929
description: Old Cloud Run revision traffic percentage
30-
options:
31-
- 0
30+
options:
3231
- 10
3332
- 25
3433
- 50
@@ -87,4 +86,5 @@ jobs:
8786
project_id: ${{ vars.gcp_project_id }}
8887
service: ${{ vars.service_name }}
8988
region: ${{ vars.region }}
90-
metadata: container-canary.yaml
89+
metadata: container-canary.yaml
90+
#TODO: add revision tag url, do same thing on data tier (blue-green), test in parallel

.github/workflows/deployment-prod-release.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ jobs:
3434
name: "Cloud Run Deployment"
3535
runs-on: ubuntu-latest
3636
environment: prod
37-
needs: [image-build-push]
3837
permissions:
3938
id-token: write
4039
contents: read

0 commit comments

Comments
 (0)