Skip to content

fix(release): switch to GHCR-only via docker-release-ghcr.yml#88

Merged
JustSamuel merged 1 commit into
mainfrom
fix/split-release-jobs
May 7, 2026
Merged

fix(release): switch to GHCR-only via docker-release-ghcr.yml#88
JustSamuel merged 1 commit into
mainfrom
fix/split-release-jobs

Conversation

@JustSamuel

@JustSamuel JustSamuel commented May 7, 2026

Copy link
Copy Markdown
Collaborator

Why

The release for v1.3.0 failed at the GHCR push:

```
ERROR: failed to push ghcr.io/eou/plankapi:latest:
denied: permission_denied: The requested installation does not exist.
```

`docker-release.yml` reuses the single `docker-paths` for both the custom registry and GHCR. `eou/plankapi` is correct on `abc.docker-registry.gewis.nl` (team namespace) but invalid on GHCR — GHCR routes by GitHub org, and there's no `eou` org.

What

Drop the internal registry entirely and switch to the dedicated GHCR-only workflow with the org-namespaced path:

```yaml
release:
uses: GEWIS/actions/.github/workflows/docker-release-ghcr.yml@v1
with:
projects: '["."]'
docker-paths: '["gewis/plankapi"]'
version: ${{ needs.versioning.outputs.next-version }}
```

  • No `REGISTRY_USERNAME`/`REGISTRY_PASSWORD` secrets needed — GHCR push uses `GITHUB_TOKEN`.
  • `fix:` type so semantic-release computes a patch bump and triggers a release on merge.

Test plan

  • After merge: release workflow on main fires
  • Image pushed to `ghcr.io/gewis/plankapi:1.3.1` (and `:latest`)

The previous `docker-release.yml` setup tried to push the same
`docker-paths` to both `abc.docker-registry.gewis.nl` and
ghcr.io, but `eou/plankapi` only makes sense on the internal
registry — GHCR routes by GitHub org, so `ghcr.io/eou/plankapi`
is rejected with "permission_denied: The requested installation
does not exist".

Drop the internal registry entirely and switch to the dedicated
`docker-release-ghcr.yml` workflow with the org-namespaced path
`gewis/plankapi`. No registry secrets needed (uses GITHUB_TOKEN).
@JustSamuel JustSamuel force-pushed the fix/split-release-jobs branch from 8567310 to e42200d Compare May 7, 2026 13:47
@JustSamuel JustSamuel changed the title fix(release): split docker push into internal + ghcr jobs fix(release): switch to GHCR-only via docker-release-ghcr.yml May 7, 2026
@JustSamuel JustSamuel merged commit 335c49c into main May 7, 2026
3 checks passed
@JustSamuel JustSamuel deleted the fix/split-release-jobs branch May 7, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant