From 3616c4026b82cf05ea88d64a668b318608b1c7e8 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Thu, 4 Sep 2025 14:23:49 -0700 Subject: [PATCH] move up the gcp auth step --- .github/workflows/central-controller.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/central-controller.yaml b/.github/workflows/central-controller.yaml index a20dfb397..29053be69 100644 --- a/.github/workflows/central-controller.yaml +++ b/.github/workflows/central-controller.yaml @@ -14,13 +14,18 @@ jobs: steps: - name: checkout uses: actions/checkout@v4 - + + - name: GCP Auth + uses: google-github-actions/auth@v2 + with: + credentials_json: ${{ secrets.DOCKER_REGISTRY_WRITER}} + - name: Set up GCloud CLI uses: google-github-actions/setup-gcloud@v2 - name: Docker Auth run: gcloud auth configure-docker us-central1-docker.pkg.dev --quiet - + # - name: Setup Miniconda # uses: conda-incubator/setup-miniconda@v3 # with: @@ -62,12 +67,7 @@ jobs: - name: Build run: | docker build -t us-central1-docker.pkg.dev/zerotier-421eb9/docker-images/ztcentral-controller:${{ env.COMMIT_SHORT_SHA }}-${{ steps.branch.outputs.branch_name }}-${{ runner.arch }} -f ext/central-controller-docker/Dockerfile.new . - - name: GCP Auth - uses: google-github-actions/auth@v2 - with: - credentials_json: ${{ secrets.DOCKER_REGISTRY_WRITER}} - - name: Build and push Docker Image run: |