From 39d2ff06fa8bf7b0baf35858d290fc844beea423 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Fri, 3 Dec 2021 14:39:05 +0100 Subject: [PATCH] Simplify skipping of scans Scans are now only skipped if the SKIP_SCANS=yes. Signed-off-by: Evan Lezar --- .nvidia-ci.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.nvidia-ci.yml b/.nvidia-ci.yml index 09c9a6f0..9084ae1d 100644 --- a/.nvidia-ci.yml +++ b/.nvidia-ci.yml @@ -106,13 +106,9 @@ image-packaging: variables: IMAGE: "${CI_REGISTRY_IMAGE}/container-toolkit:${CI_COMMIT_SHORT_SHA}-${DIST}" IMAGE_ARCHIVE: "container-toolkit.tar" - rules: - - if: $CI_COMMIT_MESSAGE =~ /\[skip[ _-]scans?\]/i - when: never - - if: $SKIP_SCANS - when: never - - if: $CI_COMMIT_TAG == null && $CI_COMMIT_BRANCH != $RELEASE_DEVEL_BRANCH - allow_failure: true + except: + variables: + - $SKIP_SCANS && $SKIP_SCANS == "yes" before_script: - docker login -u "${CI_REGISTRY_USER}" -p "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}" # TODO: We should specify the architecture here and scan all architectures