Skip to content

Commit

Permalink
Update GCP_GKE.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shadabmalikshah authored Dec 29, 2024
1 parent eadfaa1 commit f9fa859
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/GCP_GKE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ jobs:
project_id: ${{ secrets.GCP_PROJECT_ID }}
export_default_credentials: true

- name: Decode and write service account key to file
run: |
echo "${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}" | base64 --decode > $HOME/gcloud-service-key.json
- name: Authenticate with Google Cloud
run: |
echo "${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}" > $HOME/gcloud-service-key.json
gcloud auth activate-service-account --key-file=$HOME/gcloud-service-key.json
gcloud config set project ${{ secrets.GCP_PROJECT_ID }}
Expand Down

0 comments on commit f9fa859

Please sign in to comment.