Skip to content

Commit

Permalink
Use buildx when merging Docker tags (#71)
Browse files Browse the repository at this point in the history
* Use docker buildx for merging tags

* Ensure buildx is available
  • Loading branch information
Kaiede committed Dec 31, 2023
1 parent 0d58bdd commit 5dbbafa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@master

- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
Expand Down
13 changes: 6 additions & 7 deletions Docker/merge.sh
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

0 comments on commit 5dbbafa

Please sign in to comment.