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")'
|
- if: '$RENOVATE != "true" && $CI_COMMIT_REF_NAME == "master" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web")'
|
||||||
when: always
|
when: always
|
||||||
|
|
||||||
## Uncomment below to enable gitlab pages
|
artifacts:
|
||||||
# artifacts:
|
paths:
|
||||||
# paths:
|
- public/
|
||||||
# - public # deploy from the 'public' folder.
|
expire_in: 30 days
|
||||||
|
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
|
@ -38,6 +38,11 @@ test:
|
||||||
- if: '$RENOVATE != "true" && $CI_COMMIT_REF_NAME == "master" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web")'
|
- if: '$RENOVATE != "true" && $CI_COMMIT_REF_NAME == "master" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web")'
|
||||||
when: always
|
when: always
|
||||||
|
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public/
|
||||||
|
expire_in: 30 days
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
|
||||||
|
@ -84,6 +89,9 @@ renovate: # Check dependency update
|
||||||
- npm run renovate
|
- npm run renovate
|
||||||
- npm install snyk && npm run snyk
|
- npm install snyk && npm run snyk
|
||||||
|
|
||||||
|
# No artifact
|
||||||
|
dependencies: []
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
- if: '$RENOVATE == "true" && $CI_COMMIT_REF_NAME == "master" && ($CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web")'
|
- if: '$RENOVATE == "true" && $CI_COMMIT_REF_NAME == "master" && ($CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web")'
|
||||||
when: always
|
when: always
|
||||||
|
|
Loading…
Reference in New Issue