Tag images based on commit SHA, not branch name
Branch name isn't useful for the main use case of rollbacks
This commit is contained in:
parent
c3dac42eb0
commit
bf097b9bb7
1 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ build_container:
|
|||
services:
|
||||
- docker:dind
|
||||
variables:
|
||||
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
||||
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
|
||||
DOCKER_BUILDKIT: 1
|
||||
dependencies: []
|
||||
stage: test
|
||||
|
@ -154,7 +154,7 @@ deploy_container:
|
|||
services:
|
||||
- docker:dind
|
||||
variables:
|
||||
SRC_IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
||||
SRC_IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
|
||||
DEST_IMAGE_TAG: $CI_REGISTRY_IMAGE:latest
|
||||
DOCKER_BUILDKIT: 1
|
||||
dependencies: []
|
||||
|
|
Loading…
Reference in a new issue