ci: move audits to audit stage and update

This commit is contained in:
Rainer Killinger
2020-11-24 12:27:59 +01:00
parent 90eb22509a
commit bf3dee067b

View File

@@ -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
stage: publish