Commit 605fef2a authored by Adam Wujek's avatar Adam Wujek

.gitlab-ci.yml: add workflow rules

Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent 75551559
......@@ -7,6 +7,20 @@ include:
file:
- include/publish-gitlab-ci.yml
# Run the pipeline on merge requests, tag commits and commits to permanent branches.
# Also allow it to be run manually via the web UI.
# Note: in our current branching strategy there is no 'develop'/'proposed_master'.
# Still, we keep the rule in case of older/existing repositories that could benefit
# from this.
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_PIPELINE_SOURCE == "web"
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH =~ /(master|develop|proposed_master)/
- if: $CI_COMMIT_BRANCH =~ /.*-test$/
stages: # List of stages for jobs, and their order of execution
- build-sw
- build-hw
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment