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")' - 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