Commit fb60493
ci: publish selur and vordr images to GHCR (#116)
## What
Adds `.github/workflows/publish-image.yml` — a matrix workflow that
builds and pushes the **selur** and **vordr** container images to
`ghcr.io/hyperpolymath/<service>` on push to `main` (and via
`workflow_dispatch`).
## Why
Part of a cross-repo cleanup of mis-attributed GHCR packages.
`odds-and-sods-package-manager` (OPSM) used to build these images, so
`docker/metadata-action` stamped `org.opencontainers.image.source` with
OPSM and GitHub linked the `selur`/`vordr` packages to the wrong repo.
Publishing them from **stapeln** (their real home) re-points each
package's "Repository source" to `hyperpolymath/stapeln` on the next
push.
## Details
- Matrix builds only `selur` and `vordr`. **cerro-torre** stays
unpublished (source kept here only) and **svalinn** self-publishes from
`hyperpolymath/svalinn`, so neither is in the matrix.
- Each service builds from its own dir context
(`container-stack/<service>`, `file:
container-stack/<service>/Containerfile`) — exactly how
`container-stack-smoke.yml` already builds them, so the Containerfiles
are known-good.
- Actions are SHA-pinned to the estate policy (same pins used elsewhere
in the org), `permissions` are least-privilege (`packages: write` only
on the build job), and build provenance is attested via
`actions/attest-build-provenance`.
> Note: the GHCR package → repo **re-link** itself is a manual one-time
step in the GitHub package settings UI (unlink old source / connect this
repo); this workflow ensures every subsequent push publishes with the
correct source label.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_012kWck3NjBo5orHKAXMHm5W
---
_Generated by [Claude
Code](https://claude.ai/code/session_012kWck3NjBo5orHKAXMHm5W)_
Co-authored-by: Claude <noreply@anthropic.com>1 parent fd9da47 commit fb60493
1 file changed
Lines changed: 71 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
0 commit comments