Skip to content

Commit

Permalink
Copy changes to staging and default
Browse files Browse the repository at this point in the history
  • Loading branch information
faucomte97 committed Jun 26, 2024
1 parent ced8b2a commit 0c83ac2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/deploy_default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
MODULE_NAME: default
VERSION: ${{ github.run_number }}
DATABASE_POSTFIX: ${{ secrets.DATABASE_POSTFIX }}
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -25,18 +28,17 @@ jobs:
python-version: "3.8.x"
architecture: "x64"

- id: gcauth
- id: auth
name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCLOUD_AUTH }}
project_id: 'decent-digit-629'
workload_identity_provider: 'projects/354656325390/locations/global/workloadIdentityPools/cfl-pool/providers/cfl-provider'
service_account: '[email protected]'

- name: Setup gcloud CLI
uses: google-github-actions/setup-gcloud@v2

- name: GKE auth
uses: simenandre/setup-gke-gcloud-auth-plugin@v1

- name: Deploy to Google Cloud
uses: ./.github/actions/deploy_gcloud
with:
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/deploy_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
MODULE_NAME: staging
VERSION: ${{ github.run_number }}
DATABASE_POSTFIX: ${{ secrets.DATABASE_POSTFIX }}
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -25,18 +28,17 @@ jobs:
python-version: "3.8.x"
architecture: "x64"

- id: gcauth
- id: auth
name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCLOUD_AUTH }}
project_id: 'decent-digit-629'
workload_identity_provider: 'projects/354656325390/locations/global/workloadIdentityPools/cfl-pool/providers/cfl-provider'
service_account: '[email protected]'

- name: Setup gcloud CLI
uses: google-github-actions/setup-gcloud@v2

- name: GKE auth
uses: simenandre/setup-gke-gcloud-auth-plugin@v1

- name: Deploy to Google Cloud
uses: ./.github/actions/deploy_gcloud
with:
Expand Down

0 comments on commit 0c83ac2

Please sign in to comment.