generated from ocadotechnology/codeforlife-template-backend
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Use Workload Identity Federation
- Loading branch information
1 parent
7073ad7
commit 8f5cc0e
Showing
1 changed file
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: π« Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: π Set up Python | ||
uses: actions/setup-python@v4 | ||
|
@@ -50,20 +50,22 @@ jobs: | |
environment: ${{ github.ref_name }} | ||
steps: | ||
- name: π« Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: π Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
|
||
- name: π Authenticate with GCloud | ||
uses: google-github-actions/auth@v1 | ||
uses: google-github-actions/auth@v2 | ||
with: | ||
credentials_json: ${{ secrets.GCP_CREDENTIALS }} | ||
project_id: 'decent-digit-629' | ||
workload_identity_provider: 'projects/354656325390/locations/global/workloadIdentityPools/cfl-pool/providers/cfl-provider' | ||
service_account: '[email protected]' | ||
|
||
- name: π€ Set up GCloud SDK | ||
uses: google-github-actions/setup-gcloud@v1 | ||
uses: google-github-actions/setup-gcloud@v2 | ||
|
||
- name: π Install Backend Dependencies | ||
working-directory: ./backend | ||
|