@@ -173,49 +173,6 @@ jobs:
173173 run : |
174174 echo "${VERSION}"
175175 make build-${{ matrix.dist }}
176- build-gpu-operator-validator-arm64 :
177- needs : [go-check, go-test, go-build]
178- runs-on : ubuntu-24.04-arm
179- strategy :
180- matrix :
181- dist : [ubi9]
182- steps :
183- - uses : actions/checkout@v4
184- name : Check out code
185- - name : Calculate build vars
186- id : vars
187- run : |
188- echo "COMMIT_SHORT_SHA=${GITHUB_SHA:0:8}" >> $GITHUB_ENV
189- echo "LOWERCASE_REPO_OWNER=$(echo "${GITHUB_REPOSITORY_OWNER}" | awk '{print tolower($0)}')" >> $GITHUB_ENV
190-
191- GENERATE_ARTIFACTS="false"
192- if [[ "${{ github.actor }}" == "dependabot[bot]" ]]; then
193- GENERATE_ARTIFACTS="false"
194- elif [[ "${{ github.event_name }}" == "pull_request" && "${{ github.event.pull_request.head.repo.full_name }}" == "${{ github.repository }}" ]]; then
195- GENERATE_ARTIFACTS="true"
196- elif [[ "${{ github.event_name }}" == "push" ]]; then
197- GENERATE_ARTIFACTS="true"
198- fi
199- echo "PUSH_ON_BUILD=${GENERATE_ARTIFACTS}" >> $GITHUB_ENV
200- echo "DOCKER_BUILD_PLATFORM_OPTIONS=--platform=linux/arm64" >> $GITHUB_ENV
201- - name : Set up Docker Buildx
202- uses : docker/setup-buildx-action@v3
203- - name : Login to GitHub Container Registry
204- uses : docker/login-action@v3
205- with :
206- registry : ghcr.io
207- username : ${{ github.actor }}
208- password : ${{ secrets.GITHUB_TOKEN }}
209- - name : Build image
210- env :
211- IMAGE_NAME : ghcr.io/${LOWERCASE_REPO_OWNER}/gpu-operator/gpu-operator-validator
212- VERSION : ${COMMIT_SHORT_SHA}-arm64
213- SUBCOMPONENT : validator
214- run : |
215- echo "${VERSION}"
216- make build-${{ matrix.dist }}
217-
218- # ## Image builds ###
219176 build-gpu-operator-amd64 :
220177 needs : [go-check, go-test, go-build]
221178 runs-on : ubuntu-latest
@@ -260,50 +217,8 @@ jobs:
260217 echo "${VERSION}"
261218 make build-${{ matrix.dist }}
262219
263- build-gpu-operator-validator-amd64 :
264- needs : [go-check, go-test, go-build]
265- runs-on : ubuntu-latest
266- strategy :
267- matrix :
268- dist : [ubi9]
269- steps :
270- - uses : actions/checkout@v4
271- name : Check out code
272- - name : Calculate build vars
273- id : vars
274- run : |
275- echo "COMMIT_SHORT_SHA=${GITHUB_SHA:0:8}" >> $GITHUB_ENV
276- echo "LOWERCASE_REPO_OWNER=$(echo "${GITHUB_REPOSITORY_OWNER}" | awk '{print tolower($0)}')" >> $GITHUB_ENV
277-
278- GENERATE_ARTIFACTS="false"
279- if [[ "${{ github.actor }}" == "dependabot[bot]" ]]; then
280- GENERATE_ARTIFACTS="false"
281- elif [[ "${{ github.event_name }}" == "pull_request" && "${{ github.event.pull_request.head.repo.full_name }}" == "${{ github.repository }}" ]]; then
282- GENERATE_ARTIFACTS="true"
283- elif [[ "${{ github.event_name }}" == "push" ]]; then
284- GENERATE_ARTIFACTS="true"
285- fi
286- echo "PUSH_ON_BUILD=${GENERATE_ARTIFACTS}" >> $GITHUB_ENV
287- echo "DOCKER_BUILD_PLATFORM_OPTIONS=--platform=linux/amd64" >> $GITHUB_ENV
288- - name : Set up Docker Buildx
289- uses : docker/setup-buildx-action@v3
290- - name : Login to GitHub Container Registry
291- uses : docker/login-action@v3
292- with :
293- registry : ghcr.io
294- username : ${{ github.actor }}
295- password : ${{ secrets.GITHUB_TOKEN }}
296- - name : Build image
297- env :
298- IMAGE_NAME : ghcr.io/${LOWERCASE_REPO_OWNER}/gpu-operator/gpu-operator-validator
299- VERSION : ${COMMIT_SHORT_SHA}-amd64
300- SUBCOMPONENT : validator
301- run : |
302- echo "${VERSION}"
303- make build-${{ matrix.dist }}
304-
305220 build-multi-arch-images :
306- needs : [build-gpu-operator-arm64, build-gpu-operator-validator-arm64, build-gpu-operator-amd64, build-gpu-operator-validator- amd64]
221+ needs : [build-gpu-operator-arm64, build-gpu-operator-amd64]
307222 runs-on : ubuntu-latest
308223 strategy :
309224 matrix :
@@ -326,21 +241,13 @@ jobs:
326241 env :
327242 OPERATOR_IMAGE_ARM : ghcr.io/${{ env.LOWERCASE_REPO_OWNER }}/gpu-operator:${{ env.COMMIT_SHORT_SHA }}-arm64
328243 OPERATOR_IMAGE_AMD : ghcr.io/${{ env.LOWERCASE_REPO_OWNER}}/gpu-operator:${{ env.COMMIT_SHORT_SHA }}-amd64
329- VALIDATOR_IMAGE_ARM : ghcr.io/${{ env.LOWERCASE_REPO_OWNER }}/gpu-operator/gpu-operator-validator:${{ env.COMMIT_SHORT_SHA }}-arm64
330- VALIDATOR_IMAGE_AMD : ghcr.io/${{ env.LOWERCASE_REPO_OWNER }}/gpu-operator/gpu-operator-validator:${{ env.COMMIT_SHORT_SHA }}-amd64
331244 OPERATOR_MULTIARCH_IMAGE : ghcr.io/${{ env.LOWERCASE_REPO_OWNER }}/gpu-operator:${{ env.COMMIT_SHORT_SHA }}
332- VALIDATOR_MULTIARCH_IMAGE : ghcr.io/${{ env.LOWERCASE_REPO_OWNER }}/gpu-operator/gpu-operator-validator:${{ env.COMMIT_SHORT_SHA }}
333245 run : |
334246 docker manifest create \
335247 ${OPERATOR_MULTIARCH_IMAGE} \
336248 ${OPERATOR_IMAGE_AMD} \
337249 ${OPERATOR_IMAGE_ARM}
338250 docker manifest push ${OPERATOR_MULTIARCH_IMAGE}
339- docker manifest create \
340- ${VALIDATOR_MULTIARCH_IMAGE} \
341- ${VALIDATOR_IMAGE_AMD} \
342- ${VALIDATOR_IMAGE_ARM}
343- docker manifest push ${VALIDATOR_MULTIARCH_IMAGE}
344251
345252 # ## e2e tests ###
346253 e2e-tests-containerd :
@@ -371,8 +278,6 @@ jobs:
371278
372279 echo "OPERATOR_VERSION=${COMMIT_SHORT_SHA}" >> $GITHUB_ENV
373280 echo "OPERATOR_IMAGE=ghcr.io/${LOWERCASE_REPO_OWNER}/gpu-operator" >> $GITHUB_ENV
374- echo "VALIDATOR_VERSION=${COMMIT_SHORT_SHA}" >> $GITHUB_ENV
375- echo "VALIDATOR_IMAGE=ghcr.io/${LOWERCASE_REPO_OWNER}/gpu-operator/gpu-operator-validator" >> $GITHUB_ENV
376281
377282 echo "instance_hostname=ubuntu@${{ steps.get_public_dns_name.outputs.result }}" >> $GITHUB_ENV
378283 echo "private_key=${{ github.workspace }}/key.pem" >> $GITHUB_ENV
@@ -384,7 +289,7 @@ jobs:
384289 TEST_CASE : " ./tests/cases/defaults.sh"
385290 run : |
386291 echo "${{ secrets.AWS_SSH_KEY }}" > ${private_key} && chmod 400 ${private_key}
387- ./tests/ci-run-e2e.sh ${OPERATOR_IMAGE} ${OPERATOR_VERSION} ${VALIDATOR_IMAGE} ${VALIDATOR_VERSION} ${ GPU_PRODUCT_NAME} ${TEST_CASE} || rc=$?
292+ ./tests/ci-run-e2e.sh ${OPERATOR_IMAGE} ${OPERATOR_VERSION} ${GPU_PRODUCT_NAME} ${TEST_CASE} || rc=$?
388293 ./tests/scripts/pull.sh /tmp/logs logs
389294 exit $rc
390295 - name : Archive test logs
@@ -423,8 +328,6 @@ jobs:
423328
424329 echo "OPERATOR_VERSION=${COMMIT_SHORT_SHA}" >> $GITHUB_ENV
425330 echo "OPERATOR_IMAGE=ghcr.io/${LOWERCASE_REPO_OWNER}/gpu-operator" >> $GITHUB_ENV
426- echo "VALIDATOR_VERSION=${COMMIT_SHORT_SHA}" >> $GITHUB_ENV
427- echo "VALIDATOR_IMAGE=ghcr.io/${LOWERCASE_REPO_OWNER}/gpu-operator/gpu-operator-validator" >> $GITHUB_ENV
428331
429332 echo "instance_hostname=ubuntu@${{ steps.get_public_dns_name.outputs.result }}" >> $GITHUB_ENV
430333 echo "private_key=${{ github.workspace }}/key.pem" >> $GITHUB_ENV
@@ -436,7 +339,7 @@ jobs:
436339 TEST_CASE : " ./tests/cases/nvidia-driver.sh"
437340 run : |
438341 echo "${{ secrets.AWS_SSH_KEY }}" > ${private_key} && chmod 400 ${private_key}
439- ./tests/ci-run-e2e.sh ${OPERATOR_IMAGE} ${OPERATOR_VERSION} ${VALIDATOR_IMAGE} ${VALIDATOR_VERSION} ${ GPU_PRODUCT_NAME} ${TEST_CASE} || rc=$?
342+ ./tests/ci-run-e2e.sh ${OPERATOR_IMAGE} ${OPERATOR_VERSION} ${GPU_PRODUCT_NAME} ${TEST_CASE} || rc=$?
440343 ./tests/scripts/pull.sh /tmp/logs logs
441344 exit $rc
442345 - name : Archive test logs
@@ -447,7 +350,7 @@ jobs:
447350 path : ./logs/
448351 retention-days : 15
449352
450- release-latest-gpu-operator-and-validator- image :
353+ release-latest-gpu-operator-image :
451354 if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} # Runs only if the event is a push to the main branch
452355 needs : [e2e-tests-containerd, e2e-tests-nvidiadriver]
453356 runs-on : linux-amd64-cpu4
@@ -468,17 +371,14 @@ jobs:
468371 LOWERCASE_REPO_OWNER=$(echo "${GITHUB_REPOSITORY_OWNER}" | awk '{print tolower($0)}')
469372 echo "OPERATOR_VERSION=${COMMIT_SHORT_SHA}" >> $GITHUB_ENV
470373 echo "OPERATOR_IMAGE=ghcr.io/${LOWERCASE_REPO_OWNER}/gpu-operator" >> $GITHUB_ENV
471- echo "VALIDATOR_VERSION=${COMMIT_SHORT_SHA}" >> $GITHUB_ENV
472- echo "VALIDATOR_IMAGE=ghcr.io/${LOWERCASE_REPO_OWNER}/gpu-operator/gpu-operator-validator" >> $GITHUB_ENV
473- - name : Retag gpu-operator and gpu-operator-validator
374+ - name : Retag gpu-operator
474375 run : |
475376 regctl registry login ghcr.io -u $GITHUB_ACTOR -p ${{ secrets.GITHUB_TOKEN }}
476377 regctl image copy ${OPERATOR_IMAGE}:${OPERATOR_VERSION} ${OPERATOR_IMAGE}:main-latest
477- regctl image copy ${VALIDATOR_IMAGE}:${VALIDATOR_VERSION} ${VALIDATOR_IMAGE}:main-latest
478378
479379 push-gpu-operator-bundle-image :
480380 if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} # Runs only if the event is a push to the main branch
481- needs : [release-latest-gpu-operator-and-validator- image]
381+ needs : [release-latest-gpu-operator-image]
482382 runs-on : linux-amd64-cpu4
483383 steps :
484384 - uses : actions/checkout@v4
0 commit comments