ci: publish pr-<number> Docker image after quality gates pass#205
Merged
Conversation
Add a docker-pr-release job that tags and pushes the already-built image artifact as steilerdev/cornerstone:pr-<number> once quality-gates, docker, and e2e-smoke jobs succeed. The APP_VERSION build arg is stamped with the PR number so the version is visible inside the running container. Fork and Dependabot PRs are skipped via the head.repo guard. Also add a CLAUDE.md rule explicitly prohibiting pushing worktree-* branches before renaming them to the conventional format. Co-Authored-By: Claude <orchestrator> (Sonnet 4.6) <noreply@anthropic.com>
a74119c to
4b5df2e
Compare
Contributor
|
🎉 This PR is included in version 1.9.0-beta.47 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
APP_VERSION=pr-<number>at Docker build time so the version is baked into the imagedocker-pr-releasejob that re-tags the already-built artifact and pushessteilerdev/cornerstone:pr-<number>to Docker Hub oncequality-gatesanddockersucceedhead.repoguard (no secrets available)CLAUDE.mdrule prohibiting pushingworktree-*branches — branch must be renamed before any pushTest plan
Docker PR Releasejob appears and completes after quality gates passsteilerdev/cornerstone:pr-<number>is published on Docker Hubdocker run --rm steilerdev/cornerstone:pr-<number> node -e "console.log(require('./package.json').version)"printspr-<number>🤖 Generated with Claude Code