Skip to content

Commit

Permalink
testing 14
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaytonSmith committed Jun 12, 2024
1 parent 6909a0a commit 5445b66
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/docker_push_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,22 @@ jobs:
run: |
docker tag hello-world ${{ vars.REGISTRY }}/hello-world
# Save the SA key to a file so that it can be used by the docker build
- name: Save SA key to file
run: echo "${{ secrets.GCP_SA_KEY }}" > /tmp/gcp_sa_key.json

- name: Try auth again!
run: |
gcloud auth activate-service-account --key-file /tmp/gcp_sa_key.json
gcloud auth configure-docker us-docker.pkg.dev
docker login -u _json_key -p "$(cat /tmp/gcp_sa_key.json)" https://gcrc.io
- name: Push Docker image
run: |
gcloud auth configure-docker us-docker.pkg.dev --quiet && \
gcloud auth configure-docker --quiet && \
docker push ${{ vars.REGISTRY }}/hello-world
# - name: Tag Docker image
Expand Down

0 comments on commit 5445b66

Please sign in to comment.