mirror of
https://github.com/kubeshark/kubeshark.git
synced 2026-05-15 06:45:35 +00:00
* fix(release-pr): sync bumped Chart.yaml to kubeshark.github.io The release-pr target was switching back to master (and pulling) BEFORE copying helm-chart/ into ../kubeshark.github.io/charts/chart. That reverted the working tree to the pre-bump Chart.yaml, so the kubeshark.github.io PR shipped the previous version and the chart-releaser action failed trying to recreate an existing tag. Copy the bumped chart from the release/vX.Y.Z working tree, then switch kubeshark back to master at the end of the target. Also consolidate iterative robustness improvements: VERSION validation, idempotent sibling-repo tagging, idempotent branch / commit / push / PR creation, and a "nothing to commit" guard so reruns of release-pr do not fail. * refactor(release): split release-pr into three rerunnable targets Before, release-pr did three things in one recipe: tag sibling repos, create the kubeshark release PR, and create the helm chart PR. If any step failed, the whole target had to be rerun, even for the parts that had already succeeded, and some sub-steps (like tagging worker/hub/front after a docker-image-only rebuild) had no standalone entry point. Split into: - release-siblings : tag worker, hub, front - release-pr-kubeshark : bump Chart.yaml, build, open kubeshark PR - release-pr-helm : sync chart to kubeshark.github.io, open helm PR - release-pr : orchestrates all three in order Each is idempotent and can be rerun independently. release-siblings is now the canonical entry point for tagging sibling repos when refreshing docker images without a full release. release-pr-helm checks out release/v$(VERSION) (fetching from origin if absent) before copying helm-chart/, so it has the bumped Chart.yaml regardless of whether it runs right after release-pr-kubeshark or days later in a separate invocation. A shared _release-check-version prerequisite validates VERSION once per target invocation. * fix(release): make branch creation and push truly idempotent Delete and recreate local release/helm branches instead of conditionally checking out, and use --force-with-lease push to handle local/remote divergence on reruns. --------- Co-authored-by: Alon Girmonsky <alongir@Alons-Mac-Studio.local>
16 KiB
16 KiB