Skip to content

Commit f4f3434

Browse files
d-csclaude
andcommitted
ci: inline the registry expression in each publish job
Drop the YAML anchor in favor of writing the registry-resolution expression explicitly in all three publish jobs. No job, no anchor, no runner startup; the expression is identical across the three. Resolved value unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent c564e9d commit f4f3434

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,9 @@ jobs:
7474
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
7575
with:
7676
image_tag: ${{ inputs.image_tag }}
77-
# Target registry namespace, defined once here (via a YAML anchor) and reused
78-
# by every publish job. Defaults to ghcr.io/<owner> so a fork publishes to its
79-
# own namespace; set the IMAGE_REGISTRY repository variable to override.
80-
image_registry: &image_registry ${{ vars.IMAGE_REGISTRY || format('ghcr.io/{0}', github.repository_owner) }}
77+
# Target registry namespace. Defaults to ghcr.io/<owner> so a fork publishes
78+
# to its own namespace; set the IMAGE_REGISTRY repository variable to override.
79+
image_registry: ${{ vars.IMAGE_REGISTRY || format('ghcr.io/{0}', github.repository_owner) }}
8180

8281
publish-worker:
8382
needs: [typecheck]
@@ -90,7 +89,7 @@ jobs:
9089
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
9190
with:
9291
image_tag: ${{ inputs.image_tag }}
93-
image_registry: *image_registry
92+
image_registry: ${{ vars.IMAGE_REGISTRY || format('ghcr.io/{0}', github.repository_owner) }}
9493

9594
publish-worker-v4:
9695
needs: [typecheck]
@@ -101,7 +100,7 @@ jobs:
101100
uses: ./.github/workflows/publish-worker-v4.yml
102101
with:
103102
image_tag: ${{ inputs.image_tag }}
104-
image_registry: *image_registry
103+
image_registry: ${{ vars.IMAGE_REGISTRY || format('ghcr.io/{0}', github.repository_owner) }}
105104

106105
# OS-level CVE scan of the image just published above. Report-only (writes to
107106
# the run summary); runs alongside the worker publishes and never blocks them.

0 commit comments

Comments
 (0)