Skip to content

Commit 78fb6fd

Browse files
committed
fix: use published image matching git tag in Helm chart installation
1 parent d1ce8c1 commit 78fb6fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/helm-tests.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,14 @@ jobs:
104104
- name: Install Mondoo Operator Helm chart
105105
env:
106106
BUILD_OPERATOR: ${{ inputs.build-operator }}
107+
GIT_REF_NAME: ${{ github.ref_name }}
107108
run: |
108109
HELM_ARGS="--set operator.createConfig=false"
109110
if [ "$BUILD_OPERATOR" = "true" ]; then
110111
HELM_ARGS="$HELM_ARGS --set controllerManager.manager.image.tag=$(make print-version) --set controllerManager.manager.imagePullPolicy=Never"
112+
else
113+
# Use the published image matching the git tag instead of the chart default
114+
HELM_ARGS="$HELM_ARGS --set controllerManager.manager.image.tag=$GIT_REF_NAME"
111115
fi
112116
helm install mondoo-operator charts/mondoo-operator -n mondoo-operator --create-namespace --wait $HELM_ARGS
113117

0 commit comments

Comments
 (0)