gitcontinuous-integrationgitlabcdn

Is it possible on gitlab ci build only on tag push event?


when I have a project with continuous integration gitlab at the time of making the push automatically tasks that are within the gitlab-ci.yml file are released , what I want is that only in time to make the push of a tag ( git push --follow -tags ) , the tasks of file gitlab-ci.yml - run , is this possible (only git push --follow -tags)?

enter image description here

I refer to this event , but with the build in gitlab ci.


Solution

  • Solved:

    Add to .gitlab-ci.yml tags:

    myjob:
      script: test
      only:
      - tags