@@ -17,9 +17,8 @@ name: CI
1717on :
1818 push :
1919 branches :
20- - " pull-request/[0-9]+"
21- - main
22- - release-*
20+ - bundlecommitsha
21+
2322
2423concurrency :
2524 group : ${{ github.workflow }}-pr-${{ github.event.pull_request.number || github.ref }}
@@ -400,7 +399,7 @@ jobs:
400399 retention-days : 15
401400
402401 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
402+ if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/bundlecommitsha ' }} # Runs only if the event is a push to the main branch
404403 needs : [e2e-tests-containerd, e2e-tests-nvidiadriver]
405404 runs-on : linux-amd64-cpu4
406405 steps :
@@ -423,10 +422,10 @@ jobs:
423422 - name : Retag gpu-operator
424423 run : |
425424 regctl registry login ghcr.io -u $GITHUB_ACTOR -p ${{ secrets.GITHUB_TOKEN }}
426- regctl image copy ${OPERATOR_IMAGE}:${OPERATOR_VERSION} ${OPERATOR_IMAGE}:main-latest
425+ # regctl image copy ${OPERATOR_IMAGE}:${OPERATOR_VERSION} ${OPERATOR_IMAGE}:main-latest
427426
428427 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
428+ if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/bundlecommitsha ' }} # Runs only if the event is a push to the main branch
430429 needs : [release-latest-gpu-operator-image]
431430 runs-on : linux-amd64-cpu4
432431 steps :
@@ -441,6 +440,7 @@ jobs:
441440 - name : Build bundle-image
442441 env :
443442 BUNDLE_IMAGE : " ghcr.io/nvidia/gpu-operator/gpu-operator-bundle:${{ github.ref_name }}-latest"
443+ BUNDLE_IMAGE_TAG : " ghcr.io/nvidia/gpu-operator/gpu-operator-bundle:${GITHUB_SHA:0:8}"
444444 VERSION : " "
445445 DEFAULT_CHANNEL : " stable"
446446 CHANNELS : " stable"
0 commit comments