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