From 1199351ac3701f638a24baa449a5d94c20277ced Mon Sep 17 00:00:00 2001 From: falcorocks <14293929+falcorocks@users.noreply.github.com> Date: Fri, 17 Apr 2026 14:27:10 +0200 Subject: [PATCH] ci: route PR docker builds to tmp registry Pull-request docker builds now push to a new ephemeral tmp Artifact Registry instead of the production images registry. Push-to-develop and scheduled builds continue to target images; releases via tags.yaml are unchanged. Closes #20137 --- .github/workflows/branches.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/branches.yaml b/.github/workflows/branches.yaml index 63c2f5db357..810fdaef2dc 100644 --- a/.github/workflows/branches.yaml +++ b/.github/workflows/branches.yaml @@ -262,7 +262,7 @@ jobs: bake_file: docker-bake.hcl target: ${{ matrix.image_name }} gcp_project_id: ${{ vars.GCP_PROJECT_ID_OPLABS_TOOLS_ARTIFACTS }} - registry: us-docker.pkg.dev/oplabs-tools-artifacts/images + registry: ${{ github.event_name == 'pull_request' && 'us-docker.pkg.dev/oplabs-tools-artifacts/tmp' || 'us-docker.pkg.dev/oplabs-tools-artifacts/images' }} env: | GIT_VERSION=${{ fromJson(needs.prep.outputs.versions)[matrix.image_name] }} set: | @@ -313,7 +313,7 @@ jobs: - ubuntu-24.04-arm runs-on: ${{ matrix.runner }} env: - IMAGE: ${{ needs.build-fork.result == 'success' && format('ttl.sh/{0}/{1}:24h', github.sha, matrix.image_name) || format('us-docker.pkg.dev/oplabs-tools-artifacts/images/{0}:{1}', matrix.image_name, github.sha) }} + IMAGE: ${{ needs.build-fork.result == 'success' && format('ttl.sh/{0}/{1}:24h', github.sha, matrix.image_name) || (github.event_name == 'pull_request' && format('us-docker.pkg.dev/oplabs-tools-artifacts/tmp/{0}:{1}', matrix.image_name, github.sha) || format('us-docker.pkg.dev/oplabs-tools-artifacts/images/{0}:{1}', matrix.image_name, github.sha)) }} steps: - name: Run image env: @@ -336,7 +336,7 @@ jobs: - ubuntu-24.04-arm runs-on: ${{ matrix.runner }} env: - IMAGE: ${{ needs.build-fork.result == 'success' && format('ttl.sh/{0}/{1}:24h', github.sha, matrix.image_name) || format('us-docker.pkg.dev/oplabs-tools-artifacts/images/{0}:{1}', matrix.image_name, github.sha) }} + IMAGE: ${{ needs.build-fork.result == 'success' && format('ttl.sh/{0}/{1}:24h', github.sha, matrix.image_name) || (github.event_name == 'pull_request' && format('us-docker.pkg.dev/oplabs-tools-artifacts/tmp/{0}:{1}', matrix.image_name, github.sha) || format('us-docker.pkg.dev/oplabs-tools-artifacts/images/{0}:{1}', matrix.image_name, github.sha)) }} steps: - name: Run image run: docker run "$IMAGE" --version