feat: publish GitHub Action via Docker image#55
Merged
Conversation
- Move action.yml to repo root as a Docker action referencing ghcr.io/maff/git-that-semver:1 (pre-built image, dynamic outputs) - Add release workflow: validates semver tag, creates GitHub Release, updates floating v1 git tag for stable releases - Slim Docker image: alpine:3 instead of oven/bun:1-alpine - CI git-that-semver job uses bun run index.ts directly (no bootstrapping) - Add test-action CI job: builds Docker image, validates entrypoint output for env, JSON, and YAML modes - Remove old .github/actions/git-that-semver/ nested action
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
action.ymlto repo root as a Docker action referencingghcr.io/maff/git-that-semver:1GTS_*keys are accessible to consumers without explicit declarationv1git tag for stable releasesoven/bun:1-alpinetoalpine:3(~30MB vs ~150MB)git-that-semverjob usesbun run index.tsdirectly (no bootstrapping risk)test-actionCI job builds Docker image locally and validates entrypoint for env, JSON, and YAML output modes.github/actions/git-that-semver/nested actionConsumer usage
First release steps
After merging:
git tag v1.0.0 && git push origin v1.0.0build.ymlpushes Docker image with tags1.0.0,1.0,1,latestrelease.ymlcreates GitHub Release and floatingv1git taguses: maff/git-that-semver@v1is now availableTest plan
bun test— all 153 tests passbun run lint— formatting clean