Skip to content

Commit 6fef6a0

Browse files
committed
Try to fix buildx command
Signed-off-by: Federico Busetti <[email protected]>
1 parent fb1f7a7 commit 6fef6a0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.gitlab_ci/_templates.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@
1616
- docker buildx create --use
1717
- docker buildx inspect --bootstrap
1818
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com
19+
- echo "###### Building $DOCKER_IMAGE_NAME:$DOCKER_IMAGE_TAG$DOCKER_IMAGE_TAG_SUFFIX - Cache from $DOCKER_IMAGE_NAME:cache ########"
1920
- |
20-
echo "###### Building $DOCKER_IMAGE_NAME:$DOCKER_IMAGE_TAG$DOCKER_IMAGE_TAG_SUFFIX - Cache from $DOCKER_IMAGE_NAME:cache ########"
21-
docker buildx build \
21+
docker buildx build --push \
2222
--target=$DOCKER_TARGET \
2323
--tag=$DOCKER_IMAGE_NAME:$DOCKER_IMAGE_TAG$DOCKER_IMAGE_TAG_SUFFIX \
2424
--platform=$DOCKER_PLATFORM \
2525
--cache-from type=registry,ref=$DOCKER_IMAGE_NAME:cache \
2626
--cache-to type=registry,ref=$DOCKER_IMAGE_NAME:cache \
27-
--push \
2827
.
2928
# TODO: Sign image using Cosign

0 commit comments

Comments
 (0)