I have been using Gitlab for a while and now set up a build server. As I change machines (Notebook/PC) I often commit and push to save my work to my gitlab server as the contents are regulary backed up to the cloud.
The build server, works great but the complete project is build on every push. As its quite a big one, I would like to do something like this:
Based on your example message "release 184.108.40.206", the best approach is to restrict the build to tagged commits only.
In your exinsting
gitlab-ci.yml file, add the "only" attribute to the end of the step you want to restrict.
job1: stage: build script: - echo "building..." # - Your commands here only: - tags
Now, every time you need to build it, just tag the commit using:
git tag "release 220.127.116.11"
If you really need to see every commit the message you should look in the CI Variables, there's a way to get the current commit hash ref.