All languages

Docker

You're viewing a free preview. Sign in free to read every script.

Why this exists "Which version is running in production?" should take ten seconds to answer. Teams that tag by hand answer it badly: latest moved twice since Tuesday, someone pushed v2 final fixed, and nobody can say…

Image Tagging and Versioning: Semver, Git SHA and OCI Labels from One Script

A script that derives every image tag from the git checkout (1.4.2, 1.4, 1, sha-abc1234, a safe branch tag, and latest only for clean releases), plus OCI labels that record the exact commit, run against a real repository with real builds.

Sign in free to read this script, along with the rest of the library.

Sign in free