Skip to content

Commit

Permalink
ajusta cd_prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellcassius committed Jul 27, 2023
1 parent 214a50d commit dc896ca
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/cd_prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main

env:
PROJECT_ID: test13-01 # TODO: update Google Cloud project id
PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }} # TODO: update Google Cloud project id
SERVICE: emd-desafio-devops-caio # TODO: update Cloud Run service name
REGION: us-central1-c # TODO: update Cloud Run service region

Expand All @@ -22,19 +22,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Google Auth
id: auth
uses: "google-github-actions/auth@v0"
- name: Setup Google Cloud CLI
uses: google-github-actions/[email protected]
with:
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]

# NOTE: Alternative option - authentication via credentials json
# - name: Google Auth
# id: auth
# uses: 'google-github-actions/auth@v0'
# with:
# credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
service_account_key: ${{ secrets.GCP_SA_KEY }}
project_id: ${{ secrets.GCP_PROJECT_ID }}
export_default_credentials: true

- name: Deploy to Cloud Run
id: deploy
Expand Down

0 comments on commit dc896ca

Please sign in to comment.