Skip to content

Commit e91b6d1

Browse files
committed
Aggregate manifests using buildx
Signed-off-by: Federico Busetti <[email protected]>
1 parent 6ada742 commit e91b6d1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.gitlab_ci/_templates.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@ variables:
4646
script:
4747
- *docker-gitlab-login
4848
- echo "Building $DOCKER_IMAGE_FULL_TAG multiarch manifest"
49-
- docker manifest create $DOCKER_IMAGE_FULL_TAG
50-
--amend $DOCKER_IMAGE_FULL_TAG-linuxamd64
51-
--amend $DOCKER_IMAGE_FULL_TAG-linuxarm64
52-
- docker manifest push $DOCKER_IMAGE_FULL_TAG
49+
- docker buildx imagetools create $DOCKER_IMAGE_FULL_TAG
50+
$DOCKER_IMAGE_FULL_TAG-linuxamd64
51+
$DOCKER_IMAGE_FULL_TAG-linuxarm64
5352

5453
.promote-image:
5554
image: docker:$DOCKER_VERSION

.gitlab_ci/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,4 @@ aggregate-http-manifests:
5454
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
5555
extends:
5656
- .multiarch-manifest-gitlab
57+

0 commit comments

Comments
 (0)