From b38905a34ef5fb048a588595ad16aa72b62acb66 Mon Sep 17 00:00:00 2001 From: Benji Vesterby Date: Thu, 27 Jun 2024 17:24:53 -0400 Subject: [PATCH] feat: adding the gcp auth --- .github/workflows/release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 81fb6fa..93cfb34 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,11 +22,14 @@ jobs: uses: actions/setup-go@v3 with: go-version: 1.22 + - id: 'auth' + name: 'Authenticate to Google Cloud' + uses: 'google-github-actions/auth@v0.4.0' + with: + credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}' - name: Docker Login uses: docker/login-action@v2 with: registry: us-east1-docker.pkg.dev/codepros/codepros - username: ${{ secrets.GCP_USER }} - password: ${{ secrets.GCP_PAT }} - name: Docker Build and Push run: docker build --push -t us-east1-docker.pkg.dev/codepros/codepros/vault:${{ github.ref }} ./0.X/