Tags are the tiny flags that tell your future self and your CI pipeline that this commit is important enough to ship or debug for eternity. This guide covers creating tags in the GitLab web UI and on the command line, annotated tags for audit friendly metadata, signed tags for provenance, and how tags wake up your CI pipelines and release pages.
If you like nice buttons and mild scrolling then the web UI will be your friend. Open your project, go to Repository then Tags then New tag. Pick a name such as v1.0 pick a target branch or commit and add a human readable message. Click Create tag and enjoy the instant gratification.
If the command line is your spirit animal you get more control and metadata. Annotated tags include author info and a timestamp which actually helps during audits and debugging.
git tag -a v1.0 -m 'Release 1.0'
git push origin v1.0
# or push all new tags
git push origin --tags
Annotated tags are the ones you want by default for releases since they record who made the tag and when. Lightweight tags are okay for quick bookmarks but they do not carry that extra info.
If you need cryptographic proof that a release came from the right person sign the tag with your GPG key before pushing. That gives reviewers and automated systems a way to verify provenance.
git tag -s v1.0 -m 'Signed release'
git push origin v1.0
Make sure your GPG key is uploaded to GitLab and that your local git is configured to use it. Signed tags will show up in GitLab with a verified marker when everything is set up correctly.
Tags are the bridge between a code snapshot and your delivery workflow. In GitLab CI you can configure jobs to run only for tags or use rules that match tag refs so that a pipeline runs on a tagged commit. This is how you make builds packages and release notes happen automatically without finger crossing.
After a tag is pushed you can also create a Release in GitLab and attach binaries change notes and links. Releases are a great place to gather artifacts for users and downstream systems.
Prefer annotated tags for most releases. They are slightly more thoughtful than a sticky note and much more useful when someone asks what changed and who pushed it.
I know how you can get Azure Certified, Google Cloud Certified and AWS Certified. It's a cool certification exam simulator site called certificationexams.pro. Check it out, and tell them Cameron sent ya!
This is a dedicated watch page for a single video.