mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-18 15:42:54 +00:00
ci: seperate audit jobs from test stage
This commit is contained in:
@@ -11,6 +11,7 @@ before_script:
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
- audit
|
||||
- publish
|
||||
- deploy
|
||||
|
||||
@@ -38,7 +39,7 @@ package:
|
||||
- lib
|
||||
|
||||
audit:
|
||||
stage: test
|
||||
stage: audit
|
||||
script:
|
||||
- npm audit
|
||||
allow_failure: true
|
||||
@@ -46,13 +47,13 @@ audit:
|
||||
- schedules
|
||||
|
||||
scheduled-audit:
|
||||
stage: test
|
||||
stage: audit
|
||||
script:
|
||||
- npm audit
|
||||
only:
|
||||
- schedules
|
||||
|
||||
mocha:
|
||||
unit:
|
||||
stage: test
|
||||
script:
|
||||
- npm test
|
||||
@@ -80,8 +81,8 @@ docker:
|
||||
- docker:dind
|
||||
script:
|
||||
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
|
||||
- docker build -t registry.gitlab.com/openstapps/api/cli:$CI_BUILD_REF_NAME .
|
||||
- docker push registry.gitlab.com/openstapps/api/cli:$CI_BUILD_REF_NAME
|
||||
- docker build -t registry.gitlab.com/openstapps/api/cli:$CI_COMMIT_REF_NAME .
|
||||
- docker push registry.gitlab.com/openstapps/api/cli:$CI_COMMIT_REF_NAME
|
||||
- docker build -t registry.gitlab.com/openstapps/api/cli:latest .
|
||||
- docker push registry.gitlab.com/openstapps/api/cli:latest
|
||||
tags:
|
||||
|
||||
Reference in New Issue
Block a user