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 3c9a2ab commit 8cff77c
Showing 1 changed file with 27 additions and 9 deletions.
36 changes: 27 additions & 9 deletions .github/workflows/docker_push_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,37 @@ jobs:

steps:

- name: Checkout code
- name: Login
uses: google-github-actions/setup-gcloud@v0
with:
project_id: ${{ vars.GCP_PROJECT_ID }}
service_account_email: [email protected]
service_account_key: ${{ secrets.GCP_SA_KEY }}

- name: Configure Docker
run: gcloud auth configure-docker --quiet

- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- run: 'echo "$KEY" > ./key.json'
shell: bash
env:
KEY: ${{ secrets.GCP_SA_KEY }}

- name: Decode and write GCP key to file
run: echo "${{ secrets.GCP_SA_KEY_B64 }}" | base64 --decode > /tmp/gcp_sa_key.json
# - name: Checkout code
# uses: actions/checkout@v2

- name: Authenticate to Google Cloud
run: |
gcloud auth activate-service-account --key-file=/tmp/gcp_sa_key.json
gcloud auth configure-docker us-docker.pkg.dev
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1

# - name: Decode and write GCP key to file
# run: echo "${{ secrets.GCP_SA_KEY_B64 }}" | base64 --decode > /tmp/gcp_sa_key.json

# - name: Authenticate to Google Cloud
# run: |
# gcloud auth activate-service-account --key-file=/tmp/gcp_sa_key.json
# gcloud auth configure-docker us-docker.pkg.dev --quiet

# - name: Checkout repository
# uses: actions/checkout@v4
Expand Down

0 comments on commit 8cff77c

Please sign in to comment.