mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-08 06:22:53 +00:00
ci: move audits to audit stage and update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user