diff --git a/.nvidia-ci.yml b/.nvidia-ci.yml index f515de26..0af5aa6e 100644 --- a/.nvidia-ci.yml +++ b/.nvidia-ci.yml @@ -120,6 +120,7 @@ image-packaging: - if [ -z "$SSA_TOKEN" ]; then exit 1; else echo "SSA_TOKEN set!"; fi script: - pulse-cli -n $NSPECT_ID --ssa $SSA_TOKEN scan -i $IMAGE_ARCHIVE -p $CONTAINER_POLICY -o + - rm -f "${IMAGE_ARCHIVE}" artifacts: when: always expire_in: 1 week @@ -211,13 +212,14 @@ scan-packaging: PACKAGE_IMAGE_NAME: "${CI_REGISTRY_IMAGE}/container-toolkit" PACKAGE_IMAGE_TAG: "${CI_COMMIT_SHORT_SHA}-packaging" KITMAKER_ARTIFACTORY_REPO: "${ARTIFACTORY_REPO_BASE}-generic-local/${KITMAKER_RELEASE_FOLDER}" + ARTIFACTS_DIR: "${CI_PROJECT_DIR}/artifacts" script: - !reference [.regctl-setup, before_script] - apk add --no-cache bash git - regctl registry login "${PACKAGE_REGISTRY}" -u "${PACKAGE_REGISTRY_USER}" -p "${PACKAGE_REGISTRY_TOKEN}" - ./scripts/extract-packages.sh "${PACKAGE_IMAGE_NAME}:${PACKAGE_IMAGE_TAG}" - # TODO: ./scripts/release-packages-artifactory.sh "${DIST}-${ARCH}" "${PACKAGE_ARTIFACTORY_REPO}" - ./scripts/release-kitmaker-artifactory.sh "${KITMAKER_ARTIFACTORY_REPO}" + - rm -rf ${ARTIFACTS_DIR} # Define the package release targets release:packages:kitmaker: