mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
ci(release): gate image publish behind a manual approval (#482)
Attach the manifest job to a publish-images GitHub Environment so Docker Hub + GHCR tags only go live after a maintainer approves the release run. Build + Trivy scan still run automatically; approval is the last step. Adds RELEASE.md runbook.
This commit is contained in:
@@ -412,6 +412,12 @@ jobs:
|
||||
name: Create Multi-Arch Manifests
|
||||
needs: [release, docker, scan]
|
||||
runs-on: ubuntu-latest
|
||||
# Manual publish gate: this job creates the public `latest` / version tags on
|
||||
# Docker Hub + GHCR (the point at which images become pullable by tag). The
|
||||
# `publish-images` environment requires a maintainer to approve the run in the
|
||||
# Actions UI before it proceeds, so a release never auto-publishes to the
|
||||
# registries. The image is already built and Trivy-scanned by this point.
|
||||
environment: publish-images
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
Reference in New Issue
Block a user