ci: specify artifact between jobs

This commit is contained in:
Ming Di Leom 2021-03-15 22:47:39 +00:00
parent 52c344b8e3
commit 62bad2d134
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 12 additions and 4 deletions

View File

@ -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