File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 16
16
- docker buildx create --use
17
17
- docker buildx inspect --bootstrap
18
18
- 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 # #######"
19
20
- |
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 \
22
22
--target=$DOCKER_TARGET \
23
23
--tag=$DOCKER_IMAGE_NAME:$DOCKER_IMAGE_TAG$DOCKER_IMAGE_TAG_SUFFIX \
24
24
--platform=$DOCKER_PLATFORM \
25
25
--cache-from type=registry,ref=$DOCKER_IMAGE_NAME:cache \
26
26
--cache-to type=registry,ref=$DOCKER_IMAGE_NAME:cache \
27
- --push \
28
27
.
29
28
# TODO: Sign image using Cosign
You can’t perform that action at this time.
0 commit comments