Skip to content

Commit

Permalink
configure gcloud auth
Browse files Browse the repository at this point in the history
  • Loading branch information
deal-machine committed Mar 16, 2024
1 parent 02ac658 commit 38d6f8f
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,20 @@ jobs:
credentials_json: ${{ secrets.GOOGLE_CRED }}
export_environment_variables: true
create_credentials_file: true

- name: Setup GCloud
uses: "google-github-actions/setup-gcloud@v1"

- name: Activate Service Account on Google Cloud
run: gcloud auth activate-service-account --key-file=${{ secrets.GOOGLE_CRED }}

- id: auth
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GOOGLE_CRED }}'

- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'

- name: 'Use gcloud CLI'
run: 'gcloud info'

# - name: Activate Service Account on Google Cloud
# run: gcloud auth activate-service-account --key-file=${{ secrets.GOOGLE_CRED }}

- name: Setup Cluster Kubernetes
run: gcloud container clusters get-credentials ${{ vars.CLUSTER }} --region ${{ vars.REGION }} --project ${{ vars.PROJECT }}
Expand Down

0 comments on commit 38d6f8f

Please sign in to comment.