Files
code-server/ci/steps/docker-buildx-push.sh
Kyle CarberryandClaude Opus 5.5 c094099c15 ci: publish GHCR images through coder/ghcr-publisher (#8154)
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>
2026-11-22 15:06:08 -05:00

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 "$@"