to know you are in a `commit` context or a `tag` context
(for example if you are releasing a new version of your project).
The registry and tag of the resulting Docker image follow this behavior:
| `CUSTOM_REGISTRY` used ? <imgwidth=10/> | `CUSTOM_TAG` used ? | Are you pushing git tag ? | Registry where image is pushed | Docker tag applied to the image |
|:-|:-|:-|:-|:-
| No | No | No | Gitlab project registry | Last commit SHA |
| No | No | Yes | Gitlab project registry | Git tag name |
| No | Yes | No | Gitlab project registry | `CUSTOM_TAG` |