From f2e11695cabcd0b1a5906042fed258accb47da67 Mon Sep 17 00:00:00 2001 From: David Santamaria Date: Fri, 29 May 2026 21:13:03 +0200 Subject: [PATCH] ci: publish to Artifact Registry instead of deprecated gcr.io Push/pull images via europe-west1-docker.pkg.dev/$PROJECT_ID/containers (co-located with Cloud Run) rather than the deprecated gcr.io registry. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/go.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 025bddf..0c8db02 100755 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -62,19 +62,19 @@ jobs: with: project_id: ${{ secrets.GOOGLE_CLOUD_RUN_PROJECT }} - # Build and push image to Google Container Registry + # Build and push image to Artifact Registry - name: Build run: |- gcloud builds submit \ --quiet \ - --tag "gcr.io/$PROJECT_ID/$SERVICE_NAME:$GITHUB_SHA" + --tag "$RUN_REGION-docker.pkg.dev/$PROJECT_ID/containers/$SERVICE_NAME:$GITHUB_SHA" # Deploy image to Cloud Run - name: Deploy run: |- gcloud run deploy "$SERVICE_NAME" \ --quiet \ --region "$RUN_REGION" \ - --image "gcr.io/$PROJECT_ID/$SERVICE_NAME:$GITHUB_SHA" \ + --image "$RUN_REGION-docker.pkg.dev/$PROJECT_ID/containers/$SERVICE_NAME:$GITHUB_SHA" \ --platform "managed" \ --allow-unauthenticated