I’m trying to write my
.gitlab-ci.yml so that only master is built on mainline and branches matching a certain regex are built. I’ve got the regex working, however commits to mainline master are skipped. My
.gitlab-ci.yml is essentially:
before_script: # ensure all updates are installed - apt-get update && apt-get --assume-yes upgrade build: script: # commands to build project here only: # build only branches starting with mr_ and then master in the # mainline repo - /^mr_.*$/ - master@lalsuite-test
in the above the name of the project is
lalsuite-test however commits to master don’t trigger builds so clearly this syntax is wrong. How do I specify to build commits to master in mainline and not in any forks?