From bf3dee067b79f715560e2560819fef3177da27f2 Mon Sep 17 00:00:00 2001 From: Rainer Killinger Date: Tue, 24 Nov 2020 12:27:59 +0100 Subject: [PATCH] ci: move audits to audit stage and update --- .gitlab-ci.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7827e6d8..04d2b3cb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,7 @@ image: registry.gitlab.com/openstapps/projectmanagement/node stages: - build - test + - audit - publish before_script: @@ -27,14 +28,14 @@ audit: - schedules script: - npm audit - stage: test + stage: audit scheduled-audit: only: - schedules script: - npm audit --audit-level=high - stage: test + stage: audit image-test: before_script: [] @@ -51,6 +52,9 @@ image-test: - docker build -t $CI_REGISTRY_IMAGE/$REGISTRY_BRANCH$CI_COMMIT_REF_NAME:latest . except: - /(^v[0-9]+\.[0-9]+\.[0-9]+$|^master$|^develop$)/ + tags: + - docker + image-build: image: registry.gitlab.com/openstapps/projectmanagement/builder @@ -67,6 +71,8 @@ image-build: - docker push $CI_REGISTRY_IMAGE/$REGISTRY_BRANCH$CI_COMMIT_REF_NAME:latest only: - /(^v[0-9]+\.[0-9]+\.[0-9]+$|^master$|^develop$)/ + tags: + - docker pages: artifacts: @@ -77,4 +83,4 @@ pages: script: - npm run documentation - mv docs public - stage: publish \ No newline at end of file + stage: publish