Repository navigation
Unify release workflow behind one vX.Y.Z tag - #82
Merged
Merged
Conversation
- git mv build-publish.yaml to ci.yaml and add a final docker build --platform linux/amd64 step (no push) - rewrite codeql-analysis.yml: explicit javascript-typescript, actions languages, drop autobuild and boilerplate comments - harden make release-tag: strict MAJOR.MINOR.PATCH VERSION, clean tree, HEAD equal to origin/main, and Chart.yaml version/appVersion match before tagging
Replace release.yaml with a verify -> image -> chart -> release chain plus a workflow_dispatch-only metadata job, and drop chart-release.yaml. - verify: strict vMAJOR.MINOR.PATCH tag, tag commit must be on origin/main, Chart.yaml version/appVersion must match, then lint/test/helm checks - image: multi-arch build with gha cache, latest/VERSION/MAJOR.MINOR/MAJOR - chart: package, merge into gh-pages index.yaml (skipped when the version is already listed), publish chart + Artifact Hub metadata in one commit - release: GitHub Release guarded by `gh release view` so re-runs are safe - metadata: workflow_dispatch publishes artifacthub-repo.yml + .nojekyll only - .github/scripts/publish-gh-pages.sh: shared commit/push helper that is a no-op when nothing changed
One strict vX.Y.Z tag now publishes Docker images, the Helm chart and index.yaml on gh-pages, Artifact Hub metadata, then the GitHub Release. Chart version and appVersion must both match the tag, merging to main publishes nothing, and workflow_dispatch only republishes Artifact Hub metadata.
…e lazily
- verify/image/chart/release now require event_name == 'push', so a
workflow_dispatch aimed at a tag ref cannot publish image, chart, or release
- verify resolves the tag to its commit with `rev-parse <tag>^{commit}` before
the ancestry check, so annotated tags are compared by commit, not tag object
- chart job drops the separate package step: the version check now runs first
against index.yaml (awk exact match, fails loudly when index.yaml is absent)
and packaging only happens when the version is new
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
Replaces the split Docker and Helm chart release pipelines with one tag-driven workflow. Nothing publishes when a change merges to
main.Pushing a strict
vX.Y.Ztag now runs, in order:verify: strict tag regex (^v[0-9]+\.[0-9]+\.[0-9]+$), tag commit must be an ancestor oforigin/main,Chart.yamlversionandappVersionmust equal the tag, then lint, tests, Helm lint and template.image: multi-arch Docker push taggedX.Y.Z,X.Y,X,latest, with a gha build cache.chart: package and merge intogh-pages/index.yamlwithhelm repo index --merge(relative URLs kept), skip a version already listed, publish Artifact Hub metadata in the same commit.release: GitHub Release with generated notes, guarded so re-runs are safe.workflow_dispatchpublishes onlyartifacthub-repo.ymland.nojekylltogh-pages; it never builds an image or chart.Other changes
chart-release.yaml. No morereadability-js-server-X.Y.Ztags or releases.build-publish.yamltoci.yaml; CI adds an amd64docker buildsmoke step with no push.javascript-typescriptandactionswithout autobuild.make release-tagrefuses to tag unless the tree is clean,HEADmatchesorigin/main,VERSIONis strictMAJOR.MINOR.PATCH, and the chart fields match.version==appVersion== tag, and chart-only fixes need a new patch tag.Verification
npm run lint,npm test(36 pass),make helm-verify,actionlint,shellcheck: pass.index.yamldry run: existing entries keep theircreated,digestand relative URLs, and an already-published version is never re-packaged or re-digested.Rollout
v2.0.4; the chart job skips packaging because 2.0.4 is already inindex.yaml.readability-js-server-*releases and tags are deleted manually after that run, once the.tgzURLs are confirmed.