Hi

I'm trying to setup my .gitlab-ci.yml so that it builds branches on
all forks, matching a given regex, and then master from only the
mainline repo and not forks. The documentation on how to achieve this
isn't very clear, I've been looking at the following page:

<http://doc.gitlab.com/ce/ci/yaml/README.html>

and in my .gitlab-ci.yml I have the following:

build:
  script:
  # commands to build project here
  only:
  # build only branches starting with mr_ and then master in the
  # mainline repo
  - /^mr_.*$/
  - master@lproject_name

All branches that start with mr_ are built correctly but commits to
master in the mainline repo aren't built. What is the correct syntax
for specifying this?

Cheers

Adam

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/CA%2Bmfgz2gKkh9WjA8fR5LZ99kQ7L06NFziGpCmABzmW5mAiOsiw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to