Skip to content

Commit

Permalink
Merge pull request #149 from chasinandrew/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
chasinandrew authored Oct 5, 2023
2 parents b8d7806 + e0e8344 commit 124c0c5
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/deployment-prod-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,18 @@ 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:
# 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

- name: Google Authentication
id: auth
uses: 'google-github-actions/auth@v0'
with:
token_format: 'access_token'
workload_identity_provider: '${{ secrets.WIF_PROVIDER }}' # e.g. - projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider
service_account: '${{ secrets.WIF_SERVICE_ACCOUNT }}' # e.g. - [email protected]

- name: Create prod Service Declaration
run: |-
export CONTAINER_IMAGE="${{ vars.region }}-docker.pkg.dev/${{ vars.artifact_registry_project }}/${{ vars.artifact_registry_repo }}/${{ vars.service_name }}:${{ github.event.release.tag_name }}"
Expand Down

0 comments on commit 124c0c5

Please sign in to comment.