@@ -400,7 +400,7 @@ jobs:
400400 retention-days : 15
401401
402402 release-latest-gpu-operator-image :
403- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main ' }} # Runs only if the event is a push to the main branch
403+ if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/bundlecommitsha ' }} # Runs only if the event is a push to the main branch
404404 needs : [e2e-tests-containerd, e2e-tests-nvidiadriver]
405405 runs-on : linux-amd64-cpu4
406406 steps :
@@ -426,7 +426,7 @@ jobs:
426426 regctl image copy ${OPERATOR_IMAGE}:${OPERATOR_VERSION} ${OPERATOR_IMAGE}:main-latest
427427
428428 push-gpu-operator-bundle-image :
429- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main ' }} # Runs only if the event is a push to the main branch
429+ if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/bundlecommitsha ' }} # Runs only if the event is a push to the main branch
430430 needs : [release-latest-gpu-operator-image]
431431 runs-on : linux-amd64-cpu4
432432 steps :
@@ -438,15 +438,15 @@ jobs:
438438 registry : ghcr.io
439439 username : ${{ github.actor }}
440440 password : ${{ secrets.GITHUB_TOKEN }}
441- - name : Set environment variables
442- id : vars
443- run : |
444- echo "COMMIT_SHORT_SHA=${GITHUB_SHA:0:8}" >> $GITHUB_ENV
441+ # - name: Set environment variables
442+ # id: vars
443+ # run: |
444+ # echo "COMMIT_SHORT_SHA=${GITHUB_SHA:0:8}" >> $GITHUB_ENV
445445 - name : Build bundle-image
446446 env :
447447 BUNDLE_IMAGE : " ghcr.io/nvidia/gpu-operator/gpu-operator-bundle:${{ github.ref_name }}-latest"
448- BUNDLE_IMAGE_TAG : " ghcr.io/nvidia/gpu-operator/gpu-operator-bundle:${{ env.COMMIT_SHORT_SHA }}"
449- OPERATOR_IMAGE_TAG : " ghcr.io/nvidia/gpu-operator:${{ env.COMMIT_SHORT_SHA }}"
448+ BUNDLE_IMAGE_TAG : " ghcr.io/nvidia/gpu-operator/gpu-operator-bundle:${{ github.sha[0:8] }}"
449+ OPERATOR_IMAGE_TAG : " ghcr.io/nvidia/gpu-operator:${{ github.sha[0:8] }}"
450450 VERSION : " "
451451 DEFAULT_CHANNEL : " stable"
452452 CHANNELS : " stable"
0 commit comments