Skip to content

Commit

Permalink
chore: use docker manifest instead of docker buildx
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
  • Loading branch information
Dominik Rosiek committed Feb 28, 2024
1 parent 4129b86 commit 3717f4f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions ci/push_docker_multiplatform_manifest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,20 @@ function push_manifest() {

echo
set -x
docker buildx imagetools create --tag \
# Use docker manifest as docker buildx didn't create "${REPO_URL}:${BUILD_TAG}" correctly. It was containing only linux/amd64 image
docker manifest create \
"${REPO_URL}:${BUILD_TAG}" \
"${TAGS_IN_MANIFEST[@]}"

docker buildx imagetools create --tag \
docker manifest push \
"${REPO_URL}:${BUILD_TAG}"

docker manifest create \
"${REPO_URL}:latest${BUILD_TYPE_SUFFIX}" \
"${TAGS_IN_MANIFEST[@]}"

docker manifest push \
"${REPO_URL}:latest${BUILD_TYPE_SUFFIX}"
}

push_manifest

0 comments on commit 3717f4f

Please sign in to comment.