From ce704b7c6cb62a2bb36c2ff84b4d7070399421c3 Mon Sep 17 00:00:00 2001 From: Austin Barrington Date: Mon, 8 Jun 2026 09:35:30 +0100 Subject: [PATCH 1/2] Update release workflow to use inputs --- .github/workflows/release.yml | 33 ++++++++------------------------- 1 file changed, 8 insertions(+), 25 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5455a9a..42ec3b9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,25 +3,16 @@ name: Release # Builds and publishes the operator container image and the Helm chart to # GitHub Container Registry (GHCR / GitHub Packages). # -# * Tag push (v*.*.*) -> stable release. Image is tagged -# `vX.Y.Z` (and `latest`), the chart is -# packaged with version=appVersion=X.Y.Z and -# pushed to oci://ghcr.io//charts. -# A GitHub Release is also created with the -# packaged .tgz attached. -# -# * Push to main -> snapshot. Image is tagged `main-`, -# chart is packaged as `0.0.0-sha.` and -# pushed to the same OCI repo so PR/dev -# consumers can pull a known revision. -# # * workflow_dispatch -> manual snapshot, same as a push to main. on: push: - branches: [main] - tags: ["v*.*.*"] workflow_dispatch: + inputs: + version: + description: "Version to release" + required: true + default: "0.0.0" concurrency: group: release-${{ github.ref }} @@ -50,17 +41,9 @@ jobs: id: compute run: | set -eu - if [ "${GITHUB_REF#refs/tags/}" != "$GITHUB_REF" ]; then - VERSION="${GITHUB_REF_NAME#v}" - echo "chart_version=$VERSION" >> "$GITHUB_OUTPUT" - echo "image_tag=v$VERSION" >> "$GITHUB_OUTPUT" - echo "is_release=true" >> "$GITHUB_OUTPUT" - else - SHORT="$(echo "$GITHUB_SHA" | cut -c1-7)" - echo "chart_version=0.0.0-sha.${SHORT}" >> "$GITHUB_OUTPUT" - echo "image_tag=main-${SHORT}" >> "$GITHUB_OUTPUT" - echo "is_release=false" >> "$GITHUB_OUTPUT" - fi + echo "chart_version=${{ inputs.version }}" >> "$GITHUB_OUTPUT" + echo "image_tag=v${{ inputs.version }}" >> "$GITHUB_OUTPUT" + echo "is_release=true" >> "$GITHUB_OUTPUT" image: name: Build & push operator image From 88e1ce108e243b17e0ac9c3147a9c05a4ab40d15 Mon Sep 17 00:00:00 2001 From: Austin Barrington Date: Mon, 8 Jun 2026 09:42:05 +0100 Subject: [PATCH 2/2] Update release workflow to use inputs --- .github/workflows/release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 42ec3b9..9716196 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,6 @@ name: Release # * workflow_dispatch -> manual snapshot, same as a push to main. on: - push: workflow_dispatch: inputs: version: