mirror of
https://github.com/coder/code-server.git
synced 2026-11-25 12:39:15 +08:00
GitHub grants package write per repository, so any workflow on any branch here could overwrite ghcr.io/coder/code-server, including latest and version tags. The docker job now pushes the GHCR copy to code-server-staging (Docker Hub is unchanged), signs one release attestation stating the version, the tag's commit and each image's public GHCR tags (from the same bake file), and dispatches coder/ghcr-publisher with a coder-ghcr-dispatch token. The publisher verifies the release and the attestation, then copies each image. Version tags never move; rolling tags move only for the highest stable version. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
407 B
Bash
Executable File
16 lines
407 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
main() {
|
|
cd "$(dirname "$0")/../.."
|
|
# NOTE@jsjoeio - this script assumes VERSION exists as an
|
|
# environment variable.
|
|
|
|
# NOTE@jsjoeio - this script assumes that you've downloaded
|
|
# the release-packages artifact to ./release-packages before
|
|
# running this docker buildx step
|
|
docker buildx bake -f ci/release-image/docker-bake.hcl --push "$@"
|
|
}
|
|
|
|
main "$@"
|