From 62bad2d134cac9d09dcc836554af05544ffd4467 Mon Sep 17 00:00:00 2001 From: Ming Di Leom <2809763-curben@users.noreply.gitlab.com> Date: Mon, 15 Mar 2021 22:47:39 +0000 Subject: [PATCH] ci: specify artifact between jobs --- .gitlab-ci.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 334412f..29d1162 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,10 +23,10 @@ build: - if: '$RENOVATE != "true" && $CI_COMMIT_REF_NAME == "master" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web")' when: always - ## Uncomment below to enable gitlab pages - # artifacts: - # paths: - # - public # deploy from the 'public' folder. + artifacts: + paths: + - public/ + expire_in: 30 days test: stage: test @@ -38,6 +38,11 @@ test: - if: '$RENOVATE != "true" && $CI_COMMIT_REF_NAME == "master" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web")' when: always + artifacts: + paths: + - public/ + expire_in: 30 days + deploy: stage: deploy @@ -84,6 +89,9 @@ renovate: # Check dependency update - npm run renovate - npm install snyk && npm run snyk + # No artifact + dependencies: [] + rules: - if: '$RENOVATE == "true" && $CI_COMMIT_REF_NAME == "master" && ($CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web")' when: always