File tree 1 file changed +32
-1
lines changed
1 file changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,38 @@ jobs:
210
210
echo "${VERSION}"
211
211
make build-${{ matrix.dist }}
212
212
213
- # ## e2e tests ###
213
+ build-gpu-operator-bundle-image :
214
+ if : github.ref == 'refs/heads/main' # Runs only if the event is from a main branch commit
215
+ runs-on : ubuntu-latest
216
+ steps :
217
+ - uses : actions/checkout@v4
218
+ name : Check out code
219
+ - name : Calculate build vars
220
+ id : vars
221
+ run : |
222
+ # echo "COMMIT_SHORT_SHA=${GITHUB_SHA:0:8}" >> $GITHUB_ENV
223
+ echo "BRANCH_NAME=${GITHUB_REF_NAME}" >> $GITHUB_ENV
224
+ - name : Set up QEMU
225
+ uses : docker/setup-qemu-action@v3
226
+ with :
227
+ image : tonistiigi/binfmt:master
228
+ - name : Set up Docker Buildx
229
+ uses : docker/setup-buildx-action@v3
230
+ - name : Login to GitHub Container Registry
231
+ uses : docker/login-action@v3
232
+ with :
233
+ registry : ghcr.io
234
+ username : ${{ github.actor }}
235
+ password : ${{ secrets.GITHUB_TOKEN }}
236
+ - name : Build bundle-image
237
+ env :
238
+ BUNDLE_IMAGE : " ghcr.io/nvidia/gpu-operator/gpu-operator-bundle:${{ env.BRANCH_NAME }}-latest"
239
+ DEFAULT_CHANNEL : " stable"
240
+ CHANNELS : " stable"
241
+ run : |
242
+ make push-bundle-image
243
+
244
+ # # e2e tests ###
214
245
e2e-tests-containerd :
215
246
needs : [build-gpu-operator, build-gpu-operator-validator]
216
247
runs-on : linux-amd64-cpu4
You can’t perform that action at this time.
0 commit comments