Skip to content

CICD-136 · Tag by commit SHA ​

Encyclopedia · Registries and releases · All snippets

Previous · CICD-135 · Next · CICD-137

1. Where it fits ​

  • Placement Bash run step following checkout, or equivalent lab terminal.
  • Prerequisites authorized test registry, scoped credentials and candidate artifact.
  • Platforms local-linux, github-actions, gitea-actions.
  • Parameters GITHUB_SHA, IMAGE_REPO.

2. Copy the snippet ​

bash
docker tag web:ci "${IMAGE_REPO:?}:${GITHUB_SHA:?}"

3. How it works ​

Tag creates another local reference for the same image. It does not publish or rebuild the content.

4. Verify the result ​

IMAGE_REPO contains registry and image path. Release by digest after push.

Validation syntax-validated (Bash parse). Status definitions.