mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-28 06:52:34 +00:00
Reorder extends for internal pipelines
This change updates the ordering of internal pipeline dependencies to ensure that the correct rules are applied. Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
224020533e
commit
e588bfac7d
@ -37,6 +37,7 @@ stages:
|
|||||||
.main-or-manual:
|
.main-or-manual:
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == "main"
|
- if: $CI_COMMIT_BRANCH == "main"
|
||||||
|
- if: $CI_COMMIT_TAG && $CI_COMMIT_TAG != ""
|
||||||
- if: $CI_PIPELINE_SOURCE == "schedule"
|
- if: $CI_PIPELINE_SOURCE == "schedule"
|
||||||
when: manual
|
when: manual
|
||||||
|
|
||||||
|
@ -68,29 +68,29 @@ variables:
|
|||||||
|
|
||||||
image-centos7:
|
image-centos7:
|
||||||
extends:
|
extends:
|
||||||
- .image-pull
|
|
||||||
- .dist-centos7
|
- .dist-centos7
|
||||||
|
- .image-pull
|
||||||
|
|
||||||
image-ubi8:
|
image-ubi8:
|
||||||
extends:
|
extends:
|
||||||
- .image-pull
|
|
||||||
- .dist-ubi8
|
- .dist-ubi8
|
||||||
|
- .image-pull
|
||||||
|
|
||||||
image-ubuntu18.04:
|
image-ubuntu18.04:
|
||||||
extends:
|
extends:
|
||||||
- .image-pull
|
|
||||||
- .dist-ubuntu18.04
|
- .dist-ubuntu18.04
|
||||||
|
- .image-pull
|
||||||
|
|
||||||
image-ubuntu20.04:
|
image-ubuntu20.04:
|
||||||
extends:
|
extends:
|
||||||
- .image-pull
|
|
||||||
- .dist-ubuntu20.04
|
- .dist-ubuntu20.04
|
||||||
|
- .image-pull
|
||||||
|
|
||||||
# The DIST=packaging target creates an image containing all built packages
|
# The DIST=packaging target creates an image containing all built packages
|
||||||
image-packaging:
|
image-packaging:
|
||||||
extends:
|
extends:
|
||||||
- .image-pull
|
|
||||||
- .dist-packaging
|
- .dist-packaging
|
||||||
|
- .image-pull
|
||||||
|
|
||||||
# We skip the integration tests for the internal CI:
|
# We skip the integration tests for the internal CI:
|
||||||
.integration:
|
.integration:
|
||||||
@ -109,7 +109,8 @@ image-packaging:
|
|||||||
IMAGE: "${CI_REGISTRY_IMAGE}/container-toolkit:${CI_COMMIT_SHORT_SHA}-${DIST}"
|
IMAGE: "${CI_REGISTRY_IMAGE}/container-toolkit:${CI_COMMIT_SHORT_SHA}-${DIST}"
|
||||||
IMAGE_ARCHIVE: "container-toolkit.tar"
|
IMAGE_ARCHIVE: "container-toolkit.tar"
|
||||||
rules:
|
rules:
|
||||||
- if: $SKIP_SCANS != "yes"
|
- if: $SKIP_SCANS != "yes"
|
||||||
|
- when: manual
|
||||||
before_script:
|
before_script:
|
||||||
- docker login -u "${CI_REGISTRY_USER}" -p "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
|
- docker login -u "${CI_REGISTRY_USER}" -p "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
|
||||||
# TODO: We should specify the architecture here and scan all architectures
|
# TODO: We should specify the architecture here and scan all architectures
|
||||||
@ -134,59 +135,59 @@ image-packaging:
|
|||||||
# Define the scan targets
|
# Define the scan targets
|
||||||
scan-centos7-amd64:
|
scan-centos7-amd64:
|
||||||
extends:
|
extends:
|
||||||
- .scan
|
|
||||||
- .dist-centos7
|
- .dist-centos7
|
||||||
- .platform-amd64
|
- .platform-amd64
|
||||||
|
- .scan
|
||||||
needs:
|
needs:
|
||||||
- image-centos7
|
- image-centos7
|
||||||
|
|
||||||
scan-centos7-arm64:
|
scan-centos7-arm64:
|
||||||
extends:
|
extends:
|
||||||
- .scan
|
|
||||||
- .dist-centos7
|
- .dist-centos7
|
||||||
- .platform-arm64
|
- .platform-arm64
|
||||||
|
- .scan
|
||||||
needs:
|
needs:
|
||||||
- image-centos7
|
- image-centos7
|
||||||
- scan-centos7-amd64
|
- scan-centos7-amd64
|
||||||
|
|
||||||
scan-ubuntu18.04-amd64:
|
scan-ubuntu18.04-amd64:
|
||||||
extends:
|
extends:
|
||||||
- .scan
|
|
||||||
- .dist-ubuntu18.04
|
- .dist-ubuntu18.04
|
||||||
- .platform-amd64
|
- .platform-amd64
|
||||||
|
- .scan
|
||||||
needs:
|
needs:
|
||||||
- image-ubuntu18.04
|
- image-ubuntu18.04
|
||||||
|
|
||||||
scan-ubuntu20.04-amd64:
|
scan-ubuntu20.04-amd64:
|
||||||
extends:
|
extends:
|
||||||
- .scan
|
|
||||||
- .dist-ubuntu20.04
|
- .dist-ubuntu20.04
|
||||||
- .platform-amd64
|
- .platform-amd64
|
||||||
|
- .scan
|
||||||
needs:
|
needs:
|
||||||
- image-ubuntu20.04
|
- image-ubuntu20.04
|
||||||
|
|
||||||
scan-ubuntu20.04-arm64:
|
scan-ubuntu20.04-arm64:
|
||||||
extends:
|
extends:
|
||||||
- .scan
|
|
||||||
- .dist-ubuntu20.04
|
- .dist-ubuntu20.04
|
||||||
- .platform-arm64
|
- .platform-arm64
|
||||||
|
- .scan
|
||||||
needs:
|
needs:
|
||||||
- image-ubuntu20.04
|
- image-ubuntu20.04
|
||||||
- scan-ubuntu20.04-amd64
|
- scan-ubuntu20.04-amd64
|
||||||
|
|
||||||
scan-ubi8-amd64:
|
scan-ubi8-amd64:
|
||||||
extends:
|
extends:
|
||||||
- .scan
|
|
||||||
- .dist-ubi8
|
- .dist-ubi8
|
||||||
- .platform-amd64
|
- .platform-amd64
|
||||||
|
- .scan
|
||||||
needs:
|
needs:
|
||||||
- image-ubi8
|
- image-ubi8
|
||||||
|
|
||||||
scan-ubi8-arm64:
|
scan-ubi8-arm64:
|
||||||
extends:
|
extends:
|
||||||
- .scan
|
|
||||||
- .dist-ubi8
|
- .dist-ubi8
|
||||||
- .platform-arm64
|
- .platform-arm64
|
||||||
|
- .scan
|
||||||
needs:
|
needs:
|
||||||
- image-ubi8
|
- image-ubi8
|
||||||
- scan-ubi8-amd64
|
- scan-ubi8-amd64
|
||||||
@ -208,31 +209,24 @@ release:staging-ubuntu18.04:
|
|||||||
needs:
|
needs:
|
||||||
- image-ubuntu18.04
|
- image-ubuntu18.04
|
||||||
|
|
||||||
release:staging-ubuntu20.04:
|
|
||||||
extends:
|
|
||||||
- .release:staging
|
|
||||||
- .dist-ubuntu20.04
|
|
||||||
needs:
|
|
||||||
- image-ubuntu20.04
|
|
||||||
|
|
||||||
# Define the external release targets
|
# Define the external release targets
|
||||||
# Release to NGC
|
# Release to NGC
|
||||||
release:ngc-centos7:
|
release:ngc-centos7:
|
||||||
extends:
|
extends:
|
||||||
- .release:ngc
|
|
||||||
- .dist-centos7
|
- .dist-centos7
|
||||||
|
- .release:ngc
|
||||||
|
|
||||||
release:ngc-ubuntu18.04:
|
release:ngc-ubuntu18.04:
|
||||||
extends:
|
extends:
|
||||||
- .release:ngc
|
|
||||||
- .dist-ubuntu18.04
|
- .dist-ubuntu18.04
|
||||||
|
- .release:ngc
|
||||||
|
|
||||||
release:ngc-ubuntu20.04:
|
release:ngc-ubuntu20.04:
|
||||||
extends:
|
extends:
|
||||||
- .release:ngc
|
|
||||||
- .dist-ubuntu20.04
|
- .dist-ubuntu20.04
|
||||||
|
- .release:ngc
|
||||||
|
|
||||||
release:ngc-ubi8:
|
release:ngc-ubi8:
|
||||||
extends:
|
extends:
|
||||||
- .release:ngc
|
|
||||||
- .dist-ubi8
|
- .dist-ubi8
|
||||||
|
- .release:ngc
|
||||||
|
Loading…
Reference in New Issue
Block a user