Skip to content

Commit

Permalink
🐛 Fix image name when building with buildx
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
homersimpsons committed Nov 10, 2023
1 parent 4443b3f commit 5394a6e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions gitlab-ci/templates/build.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,9 @@
--cache-from ${IMAGE_DESTINATION}:latest
--build-arg BUILDKIT_INLINE_CACHE=1
-t $IMAGE_DESTINATION
-t ${IMAGE_DESTINATION}:latest
--target=${TARGET}
'
- docker push ${IMAGE_DESTINATION}
- docker push ${IMAGE_DESTINATION}:latest

.build image:
extends:
Expand Down

0 comments on commit 5394a6e

Please sign in to comment.