Skip to content
This repository was archived by the owner on Jun 22, 2026. It is now read-only.

ci: automate releases with release-please#2

Merged
phatpham9 merged 2 commits into
mainfrom
ci/release-please-workflow
Jun 21, 2026
Merged

ci: automate releases with release-please#2
phatpham9 merged 2 commits into
mainfrom
ci/release-please-workflow

Conversation

@phatpham9

@phatpham9 phatpham9 commented Jun 21, 2026

Copy link
Copy Markdown
Member

Summary

Automate releases with release-please on main, while keeping image publication in the existing tag-driven CD workflow.

What changed

  • add .github/workflows/release-please.yml
    • runs on pushes to main
    • requires RELEASE_PLEASE_TOKEN
    • uses the documented minimal release-please setup with release-type: go
    • creates/updates the release PR, tags, and GitHub Releases through release-please
  • update .github/workflows/cd.yml
    • grant contents: write so the workflow can edit GitHub Releases
    • after GHCR publish, ensure a release exists and idempotently append the container pull instructions

Notes

  • the GHCR image tag produced by the current docker/metadata-action config is 1.0.0, not v1.0.0, because type=semver,pattern={{version}} strips the v prefix
  • the CD workflow now writes release pull instructions using the correct image tag form
  • until RELEASE_PLEASE_TOKEN is configured in repository secrets, the new workflow will fail fast with an explicit error on pushes to main

Follow-up for reviewer

Before merging, add a repository secret named RELEASE_PLEASE_TOKEN backed by a PAT or GitHub App token with repository write permissions so release-please-created tags can trigger downstream workflows.

@phatpham9 phatpham9 merged commit 87ed3c5 into main Jun 21, 2026
1 check passed
@phatpham9 phatpham9 deleted the ci/release-please-workflow branch June 21, 2026 17:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant