mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 09:03:02 +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:
|
stages:
|
||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
|
- audit
|
||||||
- publish
|
- publish
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
@@ -27,14 +28,14 @@ audit:
|
|||||||
- schedules
|
- schedules
|
||||||
script:
|
script:
|
||||||
- npm audit
|
- npm audit
|
||||||
stage: test
|
stage: audit
|
||||||
|
|
||||||
scheduled-audit:
|
scheduled-audit:
|
||||||
only:
|
only:
|
||||||
- schedules
|
- schedules
|
||||||
script:
|
script:
|
||||||
- npm audit --audit-level=high
|
- npm audit --audit-level=high
|
||||||
stage: test
|
stage: audit
|
||||||
|
|
||||||
image-test:
|
image-test:
|
||||||
before_script: []
|
before_script: []
|
||||||
@@ -51,6 +52,9 @@ image-test:
|
|||||||
- docker build -t $CI_REGISTRY_IMAGE/$REGISTRY_BRANCH$CI_COMMIT_REF_NAME:latest .
|
- docker build -t $CI_REGISTRY_IMAGE/$REGISTRY_BRANCH$CI_COMMIT_REF_NAME:latest .
|
||||||
except:
|
except:
|
||||||
- /(^v[0-9]+\.[0-9]+\.[0-9]+$|^master$|^develop$)/
|
- /(^v[0-9]+\.[0-9]+\.[0-9]+$|^master$|^develop$)/
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
|
||||||
|
|
||||||
image-build:
|
image-build:
|
||||||
image: registry.gitlab.com/openstapps/projectmanagement/builder
|
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
|
- docker push $CI_REGISTRY_IMAGE/$REGISTRY_BRANCH$CI_COMMIT_REF_NAME:latest
|
||||||
only:
|
only:
|
||||||
- /(^v[0-9]+\.[0-9]+\.[0-9]+$|^master$|^develop$)/
|
- /(^v[0-9]+\.[0-9]+\.[0-9]+$|^master$|^develop$)/
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
artifacts:
|
artifacts:
|
||||||
@@ -77,4 +83,4 @@ pages:
|
|||||||
script:
|
script:
|
||||||
- npm run documentation
|
- npm run documentation
|
||||||
- mv docs public
|
- mv docs public
|
||||||
stage: publish
|
stage: publish
|
||||||
|
|||||||
Reference in New Issue
Block a user