mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-24 13:05:17 +00:00
Revert "[ci] Skip external releases if associated OUT_REGISTRY value is empty."
This reverts commit c2f35badb0
.
This commit is contained in:
parent
b5000c8107
commit
e47aa2962a
@ -191,24 +191,16 @@ test-packaging:
|
|||||||
|
|
||||||
# Define an external release step that pushes an image to an external repository.
|
# Define an external release step that pushes an image to an external repository.
|
||||||
# This includes a devlopment image off master.
|
# This includes a devlopment image off master.
|
||||||
# NOTE: job is skipped if OUT_REGISTRY is null or empty. Can be used to disable release(s) with CI/CD env.
|
|
||||||
.release:external:
|
.release:external:
|
||||||
extends:
|
extends:
|
||||||
- .release
|
- .release
|
||||||
rules:
|
rules:
|
||||||
- if: '$OUT_REGISTRY == null || $OUT_REGISTRY == "" || $SKIP_RELEASE'
|
|
||||||
when: never
|
|
||||||
- if: '$DRYRUN_RELEASE'
|
|
||||||
variables:
|
|
||||||
DOCKER: echo
|
|
||||||
REGCTL: echo
|
|
||||||
- if: $CI_COMMIT_TAG
|
- if: $CI_COMMIT_TAG
|
||||||
variables:
|
variables:
|
||||||
OUT_IMAGE_VERSION: "${CI_COMMIT_TAG}"
|
OUT_IMAGE_VERSION: "${CI_COMMIT_TAG}"
|
||||||
- if: $CI_COMMIT_BRANCH == $RELEASE_DEVEL_BRANCH
|
- if: $CI_COMMIT_BRANCH == $RELEASE_DEVEL_BRANCH
|
||||||
variables:
|
variables:
|
||||||
OUT_IMAGE_VERSION: "${DEVEL_RELEASE_IMAGE_VERSION}"
|
OUT_IMAGE_VERSION: "${DEVEL_RELEASE_IMAGE_VERSION}"
|
||||||
- when: on_success
|
|
||||||
|
|
||||||
# Define the release jobs
|
# Define the release jobs
|
||||||
release:staging-centos7:
|
release:staging-centos7:
|
||||||
|
@ -231,8 +231,6 @@ scan-ubi8-arm64:
|
|||||||
OUT_REGISTRY_TOKEN: "${NGC_REGISTRY_TOKEN}"
|
OUT_REGISTRY_TOKEN: "${NGC_REGISTRY_TOKEN}"
|
||||||
OUT_REGISTRY: "${NGC_REGISTRY}"
|
OUT_REGISTRY: "${NGC_REGISTRY}"
|
||||||
OUT_IMAGE_NAME: "${NGC_REGISTRY_IMAGE}"
|
OUT_IMAGE_NAME: "${NGC_REGISTRY_IMAGE}"
|
||||||
SKIP_RELEASE: "${NGC_SKIP_RELEASE}"
|
|
||||||
DRYRUN_RELEASE: "${NGC_DRYRUN_RELEASE}"
|
|
||||||
|
|
||||||
.release:dockerhub:
|
.release:dockerhub:
|
||||||
extends:
|
extends:
|
||||||
@ -242,8 +240,6 @@ scan-ubi8-arm64:
|
|||||||
OUT_REGISTRY_TOKEN: "${REGISTRY_TOKEN}"
|
OUT_REGISTRY_TOKEN: "${REGISTRY_TOKEN}"
|
||||||
OUT_REGISTRY: "${DOCKERHUB_REGISTRY}"
|
OUT_REGISTRY: "${DOCKERHUB_REGISTRY}"
|
||||||
OUT_IMAGE_NAME: "${REGISTRY_IMAGE}"
|
OUT_IMAGE_NAME: "${REGISTRY_IMAGE}"
|
||||||
SKIP_RELEASE: "${DOCKERHUB_SKIP_RELEASE}"
|
|
||||||
DRYRUN_RELEASE: "${DOCKERHUB_DRYRUN_RELEASE}"
|
|
||||||
|
|
||||||
release:staging-ubuntu18.04:
|
release:staging-ubuntu18.04:
|
||||||
extends:
|
extends:
|
||||||
|
Loading…
Reference in New Issue
Block a user