Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions .github/workflows/publish-selfhost-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,6 @@ jobs:
runs-on: blacksmith-4vcpu-ubuntu-2404
permissions:
packages: write
env:
HAS_LEGACY_TOKEN: ${{ secrets.GHCR_LEGACY_TOKEN != '' }}

steps:
- name: Download image digests
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -330,10 +327,28 @@ jobs:

docker buildx imagetools create "${tag_args[@]}" "${sources[@]}"

# Mirrors each release to the pre-org-move namespace
# (ghcr.io/rhyssullivan/executor-selfhost), which GHCR cannot redirect.
# Deliberately a separate job: the canonical publish above never depends on
# it, and a failure here (an expired GHCR_LEGACY_TOKEN, historically) shows
# as one red job pointing at exactly what to fix.
mirror-legacy:
needs:
- metadata
- merge
runs-on: blacksmith-4vcpu-ubuntu-2404
env:
HAS_LEGACY_TOKEN: ${{ secrets.GHCR_LEGACY_TOKEN != '' }}

steps:
- name: Skip legacy GHCR mirror (GHCR_LEGACY_TOKEN not configured)
if: env.HAS_LEGACY_TOKEN != 'true'
run: echo "GHCR_LEGACY_TOKEN is not configured; skipping legacy GHCR mirror."

- name: Set up Docker Buildx
if: env.HAS_LEGACY_TOKEN == 'true'
uses: docker/setup-buildx-action@v3

- name: Log in to legacy GHCR namespace
if: env.HAS_LEGACY_TOKEN == 'true'
uses: docker/login-action@v3
Expand All @@ -342,7 +357,7 @@ jobs:
username: rhyssullivan
password: ${{ secrets.GHCR_LEGACY_TOKEN }}

- name: Mirror self-host image to legacy GHCR namespace
- name: Mirror release tags to the legacy namespace
if: env.HAS_LEGACY_TOKEN == 'true'
shell: bash
env:
Expand Down
Loading