ci: tag-driven release workflow, VERSION build arg, minimal AGENTS.md - #2
Merged
Conversation
Push a v* tag to publish linux/darwin/windows archives with SHA256SUMS on the Releases page and the container image to ghcr.io/butterstack/ butterstack-connector. The Dockerfile takes a VERSION build arg so the image reports the same version as the binaries. AGENTS.md gives AI coding agents the layout, commands, and the security rules that must not move. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
Adds a release workflow triggered by pushing a
v*tag. It builds static binaries for linux/amd64, linux/arm64, darwin/arm64, darwin/amd64 and windows/amd64 with-X main.Version=<tag>(the same flag the Makefile uses), bundles each with README, LICENSE and connector.example.yml, publishes them with a SHA256SUMS file to the GitHub Releases page with generated notes, and pushes the container image toghcr.io/butterstack/butterstack-connector:<tag>and:latest. The Dockerfile gains aVERSIONbuild arg so the image reports the same version.Release artifacts rather than CI artifacts because CI artifacts expire and need a GitHub login to download; studios expect a Releases page. First release:
git tag v0.1.0 && git push origin v0.1.0once this is merged. The GHCR package inherits the repo's visibility by default; if the repo stays private for a while, the package can be made public on its own from the package settings so bsg-cp-01 can pull it without credentials.