mirror of https://gitlab.com/curben/blog
ci: trigger master branch
https://forum.gitlab.com/t/triggering-a-pipeline-on-another-branch-for-the-same-project/44458
This commit is contained in:
parent
2ac670422d
commit
c555092bbc
|
@ -48,10 +48,11 @@ test:
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
|
||||||
trigger:
|
before_script:
|
||||||
project: curben/curben.gitlab.io
|
- apk update && apk add curl
|
||||||
branch: master
|
|
||||||
strategy: depend
|
script:
|
||||||
|
- curl -X POST --fail -F token=$TRIGGER_PAGES_TOKEN -F ref=master ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/trigger/pipeline
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
- if: '$RENOVATE != "true" && $CI_COMMIT_REF_NAME == "microblog" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web")'
|
- if: '$RENOVATE != "true" && $CI_COMMIT_REF_NAME == "microblog" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web")'
|
||||||
|
|
Loading…
Reference in New Issue