Skip to content

Ci bump linuxaid hiera - #3

Open
deepak7340 wants to merge 3 commits into
mainfrom
ci-bump-linuxaid-hiera
Open

Ci bump linuxaid hiera#3
deepak7340 wants to merge 3 commits into
mainfrom
ci-bump-linuxaid-hiera

Conversation

@deepak7340

Copy link
Copy Markdown
Contributor

No description provided.

On every GitHub tag push, after goreleaser publishes the release, a
new job downloads the release's checksums.txt and opens a PR against
Obmondo/LinuxAid bumping common::system::openvox::linuxaid_cli::version
and the per-arch checksums maps in common.yaml, architectures/armv7l.yaml,
and architectures/aarch64.yaml, keeping the newest 4 versions in each.

Requires a LINUXAID_REPO_TOKEN repo secret (a token with contents and
pull-request write access to Obmondo/LinuxAid) to push the branch and
open the PR.
Lets bump-linuxaid be run manually against an already-published tag
(e.g. v1.8.0) to validate the checkout/download/bump/PR pipeline and
LINUXAID_REPO_TOKEN without waiting for or cutting a real release.
Replaces scripts/bump-linuxaid-hiera.py with scripts/bump-linuxaid-hiera
(package main), matching this repo's existing Go tooling instead of
adding a Python dependency. Same behavior: targeted regex edits (not a
full YAML parse/re-encode) so every other line and comment in the
hiera files stays byte-for-byte untouched, keeping the newest 4
checksum entries per file.

The workflow now sets up Go in the bump-linuxaid job and runs the
program via `go run` instead of `python3`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant