diff --git a/.github/workflows/deployment-prod-release.yaml b/.github/workflows/deployment-prod-release.yaml index a617fbb..185c433 100644 --- a/.github/workflows/deployment-prod-release.yaml +++ b/.github/workflows/deployment-prod-release.yaml @@ -29,15 +29,7 @@ jobs: gcloud artifacts docker tags add \ "${{ vars.region }}-docker.pkg.dev/${{ vars.artifact_registry_project }}/${{ vars.artifact_registry_repo }}/${{ vars.service_name }}:latest" \ "${{ vars.region }}-docker.pkg.dev/${{ vars.artifact_registry_project }}/${{ vars.artifact_registry_repo }}/${{ vars.service_name }}:${{ github.event.release.tag_name }}" - # deploy-prod: - # if: contains(fromJSON('["main"]'), github.ref_name) && ${{ inputs.environment }} == "prod" - # name: "Cloud Run Deployment" - # runs-on: ubuntu-latest - # environment: prod - # permissions: - # id-token: write - # contents: read - # steps: + - name: Checkout uses: actions/checkout@v3 diff --git a/service-yaml/container-canary.yaml b/service-yaml/container-canary.yaml index 3043e5c..bfb77d8 100644 --- a/service-yaml/container-canary.yaml +++ b/service-yaml/container-canary.yaml @@ -58,4 +58,8 @@ spec: - revisionName: ${SERVICE_NAME}-${REVISION_TAG} percent: ${NEW_REVISION_PERCENTAGE} - revisionName: ${EXISTING_REVISION} - percent: ${EXISTING_REVISION_PERCENTAGE} \ No newline at end of file + percent: ${EXISTING_REVISION_PERCENTAGE} + - tag: green + revisionName: ${EXISTING_REVISION} + - tag: blue + revisionName: ${SERVICE_NAME}-${REVISION_TAG} \ No newline at end of file