title: How to run Gitlab CI only for specific branches and tags?
body: <p>I would like to setup my <code>project_dev</code> CI only for 3 branches and specific kind of tags like: <strong>dev_1.0, dev_1.1, dev_1.2</strong>.</p>
  
  <p>How can I achieve that?</p>
  
  <p>This is what I have now:</p>
  
  <pre>
  project_dev:
    stage: dev
    script:
      - export
      - bundle exec pod repo update
      - bundle exec pod install
      - bundle exec fastlane crashlytics_project_dev
    after_script:
      - rm -rf ~/Library/Developer/Xcode/Archives || true
    when: manual
    only:
      - develop
      - release
      - master
      - //here I need to add condition to fire that stage additionally only for specific tags. How can I setup regexp here?
    tags:
      - iOS
  </pre>
  
  <p>When I type it like:</p>
  
  <pre>
    only:
      - branches
      - /^dev_[0-9.]*$/
  </pre>
  
  <p>It also runs the CI for tags like: <strong>dev1.2</strong> but it should not. Why? Is there a regexp for tags at all?</p>