Can I disable certain jobs in .gitlab-ci.yml for certain commits?

I was thinking this might work with a git tag.

It’s possible to only trigger builds when there is a tag for the reference. It’s the CI documentation under the “only and except” section.