Skip to content

Commit

Permalink
ajusta cd
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellcassius committed Jul 27, 2023
1 parent 3cc2ae9 commit b2ff49c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/cd_prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,12 @@ on:
- main

env:
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
PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
SERVICE: emd-desafio-devops-caio
REGION: us-central1-c

jobs:
deploy:
# Add 'id-token' with the intended permissions for workload identity federation
permissions:
contents: "read"
id-token: "write"

runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/cd_stag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,11 @@ on:
branches:
- release/*
env:
SERVICE: emd-desafio-devops-caio-staging # TODO: update Cloud Run service name
REGION: us-central1-c # TODO: update Cloud Run service region
SERVICE: emd-desafio-devops-caio-staging
REGION: us-central1-c

jobs:
deploy:
# Add 'id-token' with the intended permissions for workload identity federation
permissions:
contents: "read"
id-token: "write"

runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down

0 comments on commit b2ff49c

Please sign in to comment.