title: How to run a gitlab-ci.yml job only on a tagged branch?
body: <p>How do I run a .gitlab-ci.yml job only on a tagged Master branch?</p>
  
  <pre><code>job:
    script:
    - echo "Do something"
    only:
    - master
    - tags
  </code></pre>
  
  <p>The above code will run if either condition exists: a Master branch or a tagged commit. </p>
  
  <p>My goal is to have this run for a production deploy, but it would require that it be on the Master branch and that it be tagged (with a version). Otherwise, I'll have another job that will push to staging if its missing a tag.</p>