Skip to content

Commit 5394a6e

Browse files
committed
🐛 Fix image name when building with buildx
We cannot use the `:latest` prefix as this will generate a name like `my.registry.com/my-image:my-branch:latest`, notice there are "2" tags: `my-branch` and `latest` which is wrong.
1 parent 4443b3f commit 5394a6e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

gitlab-ci/templates/build.gitlab-ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,9 @@
4848
--cache-from ${IMAGE_DESTINATION}:latest
4949
--build-arg BUILDKIT_INLINE_CACHE=1
5050
-t $IMAGE_DESTINATION
51-
-t ${IMAGE_DESTINATION}:latest
5251
--target=${TARGET}
5352
'
5453
- docker push ${IMAGE_DESTINATION}
55-
- docker push ${IMAGE_DESTINATION}:latest
5654

5755
.build image:
5856
extends:

0 commit comments

Comments
 (0)