From c74ad904940f64dfa91720c9d198933e1169c07a Mon Sep 17 00:00:00 2001 From: kmd Date: Sat, 22 Jun 2024 15:16:20 -0700 Subject: [PATCH] Set up docker auth before running infra. --- .github/workflows/cd.infra.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.infra.yaml b/.github/workflows/cd.infra.yaml index 3ab5462..ca100c0 100644 --- a/.github/workflows/cd.infra.yaml +++ b/.github/workflows/cd.infra.yaml @@ -5,8 +5,8 @@ on: paths: - infra/** - .github/workflows/cd.infra.yaml - branches: - - main + #branches: + # - main env: GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GCP_CD }} @@ -37,6 +37,10 @@ jobs: with: version: '>= 363.0.0' + - name: Docker auth for GCP Artifact Registry + run: |- + gcloud auth configure-docker ${{ env.REGION }}-docker.pkg.dev --quiet + - uses: hashicorp/setup-terraform@v3 with: terraform_version: 1.4