File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments