Tagging & Registries

A Tagging Strategy

TagUse
1.4.2immutable release version (semantic versioning)
sha-3f1c9a7exact Git commit: perfect for traceability and rollbacks
1.4, 1moving tags for "latest patch" / "latest minor"
latestconvenience only; never deploy it

Push to a Private Registry

Example

Google Artifact Registry example:

gcloud auth configure-docker asia-south1-docker.pkg.dev
docker tag myapi:1.0 asia-south1-docker.pkg.dev/my-project/apps/myapi:1.0
docker push asia-south1-docker.pkg.dev/my-project/apps/myapi:1.0

Example output

The push refers to repository [asia-south1-docker.pkg.dev/my-project/apps/myapi]
5f70bf18a086: Pushed
1.0: digest: sha256:9b2a...c41e size: 1572