Ref: https://stackoverflow.com/questions/51642852/gitlabci-run-pipeline-on-specific-branch-and-manual
You want to run the builds on branch develop automatically but in branch web manually
You can't do this in one build, but you can use two builds for it:
my_build:develop
stage: build
only:
- develop
my_build:web
stage: build
only:
- web
when: manual
No comments:
Post a Comment