-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use buildx when merging Docker tags (#71)
* Use docker buildx for merging tags * Ensure buildx is available
- Loading branch information
Showing
2 changed files
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Merges the Manifests for | ||
# Merges amd64 and arm64 into a single tag | ||
|
||
tag=$1 | ||
|
||
docker manifest $tag | ||
docker buildx imagetools create \ | ||
-t $tag \ | ||
$tag-amd64 \ | ||
$tag-arm64 \ | ||
|
||
docker manifest create $tag \ | ||
--amend $tag-amd64 \ | ||
--amend $tag-arm64 \ | ||
|
||
docker manifest push $tag | ||
docker push $tag |