Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .github/workflows/release-package-helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,13 @@ jobs:
- name: Extract version from tag
id: version
run: |
# Extract version from tag (remove 'v' prefix)
VERSION=${GITHUB_REF_NAME#v}
# Prefer explicit input (workflow_dispatch / workflow_call), fall back to tag ref
INPUT_VERSION="${{ inputs.new_operator_version }}"
if [[ -n "${INPUT_VERSION}" ]]; then
VERSION="${INPUT_VERSION#v}"
else
VERSION="${GITHUB_REF_NAME#v}"
fi
Comment thread
kupratyu-splunk marked this conversation as resolved.
echo "version=$VERSION" >> $GITHUB_OUTPUT
Comment on lines +83 to 90
echo "Building version: $VERSION"

Expand All @@ -93,9 +98,9 @@ jobs:
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
splunk/splunk-ai-operator
tags: |
type=semver,pattern=v{{version}}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern=v{{version}},value=${{ steps.version.outputs.version }}
type=semver,pattern={{version}},value=${{ steps.version.outputs.version }}
type=semver,pattern={{major}}.{{minor}},value=${{ steps.version.outputs.version }}
type=raw,value=latest,enable={{is_default_branch}}

- name: Build and push Docker images
Expand Down Expand Up @@ -161,8 +166,9 @@ jobs:
# Extract from git tag (remove 'v' prefix)
VERSION=${GITHUB_REF_NAME#v}
elif [ -n "${{ inputs.new_operator_version }}" ]; then
# Use input version (for workflow_call)
# Use input version (for workflow_call / workflow_dispatch), strip leading v
VERSION="${{ inputs.new_operator_version }}"
VERSION="${VERSION#v}"
Comment on lines 168 to +171
else
# Fallback to Chart.yaml version
VERSION=$(grep '^version:' helm-chart/splunk-ai-operator/Chart.yaml | awk '{print $2}' | tr -d '"')
Expand Down
Loading