Skip to content

Commit

Permalink
Update buildpush.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
argonaut0 authored Sep 6, 2023
1 parent 69c6fb9 commit 049ec21
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/buildpush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ jobs:
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- id: 'auth'
name: 'Authenticate to GCP'
uses: 'google-github-actions/auth@v1'
with:
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
project_id: $PROJECT_ID
- name: 'Set up gcloud SDK'
uses: 'google-github-actions/setup-gcloud@v0'
with:
Expand All @@ -43,6 +37,13 @@ jobs:
run: |
set -x
gcloud info
- uses: 'actions/checkout@v3'
- id: 'auth'
name: 'Authenticate to GCP'
uses: 'google-github-actions/auth@v1'
with:
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
project_id: $PROJECT_ID
- name: Docker configuration
run: |-
gcloud auth configure-docker $GCR_URL
Expand All @@ -56,4 +57,4 @@ jobs:
push: true
tags: |
$GCR_URL/$PROJECT_ID/$IMAGE:$GITHUB_SHA
$GCR_URL/$PROJECT_ID/$IMAGE:latest"
$GCR_URL/$PROJECT_ID/$IMAGE:latest

0 comments on commit 049ec21

Please sign in to comment.