From 5456d4e7c0db8df9b1df348949729d7bce4f1032 Mon Sep 17 00:00:00 2001 From: Rainer Killinger Date: Tue, 11 Feb 2020 15:00:09 +0100 Subject: [PATCH] ci: seperate audit jobs from test stage --- .gitlab-ci.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 00365ccd..fc3855af 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: