feat: add check_previous_channel_release composite action#74
Open
duckhawk wants to merge 2 commits into
Open
Conversation
Promotes the per-repository check_previous_channel_release.sh script
into a reusable composite action so module repositories don't have to
ship and maintain their own copy.
The version parser now handles both single-line (`{"version":"v0.1.14"}`)
and pretty-printed multi-line `version.json` produced by yq (newlines
and indentation around the keys), using a multiline-aware PCRE grep.
…registry input The previous-channel image often lives on a read-only mirror that has a different domain than the registry used to push releases. Swap the domain portion of `module_source` with the `registry` input before calling `crane export`, so callers can pass `vars.PROD_REGISTRY_READ` while keeping `module_source` built from `vars.PROD_REGISTRY`.
Member
Author
|
Pushed an additional commit that lets callers point reads at a separate read-only registry: the action now swaps the domain portion of |
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
check_previous_channel_releasethat verifies the previous release channel exposes the same module tag before promoting to the next channel..github/check_previous_channel_release.shin module repositories (e.g.csi-ceph).version.jsonparser so it handles both single-line ({"version":"v0.1.14"}) and pretty-printed multi-line output fromyq -o=json(newlines and indentation around the keys), via a multiline-aware PCRE grep (grep -aoPz).README.mdto list the new action.v14).Usage example
Test plan
grep -aoPz '\{\s*"version"\s*:\s*"[^"]+"\s*\}' | head -z -n 1 | tr -d '\0' | jq -r .versionpipeline against:{"version":"v0.1.14"}{\n "version": "v0.1.0"\n}csi-cephdeploy_prod.yml) tocheck_previous_channel_release@mainand triggering a non-alpha channel deploy.