How to complete the .gitlab-ci.yml task only on the marked branch of the wizard?
job:
script:
- echo "Do something"
only:
- master
- tags
The above code will work if any condition exists: main branch or tagged commit.
My goal is to launch this launch for production deployment, but this will require that it be on the branch of the wizard and be tagged (with version). Otherwise, I will have another job that will move forward if the tag is missing.
source
share