Skip to content

Commit

Permalink
try alternate way of logging in to GC
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehaz authored Nov 10, 2023
1 parent be91fc8 commit f819885
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/apprentice-action-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@ jobs:

- name: push Docker image to Docker Hub
run: docker push ${{ secrets.DOCKER_USER_NAME }}/test-image
- name: Log in to Google Cloud
run: gcloud auth login ${{ secrets.GCLOUD_EMAIL }} --password-stdin <<<"${{ secrets.GCLOUD_PASSWORD }}"


- name: authenticate and login to Google Cloud using service account key
run: |
echo "${{ secrets.GCLOUD_SERVICE_KEY }}" > gcloud-service-key.json
gcloud auth activate-service-account --key-file=gcloud-service-key.json
- name: set image and restart Kubernetes deployment
run: |
gcloud container clusters get-credentials ld-cluster-1 --region=us-central1
Expand Down

0 comments on commit f819885

Please sign in to comment.