mirror of https://gitlab.com/curben/blog
ci: specify artifact between jobs
This commit is contained in:
parent
52c344b8e3
commit
62bad2d134
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue