Trigger Gitlab-CI Pipeline only when there is a new tag

后端 未结 3 928
旧时难觅i
旧时难觅i 2021-01-05 15:32

I have following gitlab-ci conf. file:

before_script:
  - echo %CI_BUILD_REF%
  - echo %CI_PROJECT_DIR%

stages:
  - createPBLs
  - build
  - package


creat         


        
3条回答
  •  情话喂你
    2021-01-05 15:56

    You need to use only syntax:

    only:
      - tags
    

    This would trigger for any Tag being pushed. If you want to be a bit more specific you can do:

    only:
      - /Ticket\/ticket\_.*/
    

    which would build for any push with the Ticket/ticket_ tag.

提交回复
热议问题