Skip to content

Commit

Permalink
docker buildkit for multi platform builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroli committed Apr 1, 2024
1 parent d5be85a commit 300cb10
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,20 +153,20 @@ jobs:
latest=false
- name: Create and push tag manifest
run: |
docker manifest create \
${{ steps.docker-meta.outputs.tags }} \
--amend ${{ steps.docker-meta.outputs.tags }}-x86_64-linux \
--amend ${{ steps.docker-meta.outputs.tags }}-aarch64-linux \
--amend ${{ steps.docker-meta.outputs.tags }}-armv7-linux
docker buildx imagetools create \
-t ${{ steps.docker-meta.outputs.tags }} \
${{ steps.docker-meta.outputs.tags }}-x86_64-linux \
${{ steps.docker-meta.outputs.tags }}-aarch64-linux \
${{ steps.docker-meta.outputs.tags }}-armv7-linux
docker manifest push \
${{ steps.docker-meta.outputs.tags }}
- name: Create and push tag manifest (latest)
run: |
docker manifest create \
ghcr.io/${{ github.repository }}:latest \
--amend ${{ steps.docker-meta.outputs.tags }}-x86_64-linux \
--amend ${{ steps.docker-meta.outputs.tags }}-aarch64-linux \
--amend ${{ steps.docker-meta.outputs.tags }}-armv7-linux
docker buildx imagetools create \
-t ghcr.io/${{ github.repository }}:latest \
${{ steps.docker-meta.outputs.tags }}-x86_64-linux \
${{ steps.docker-meta.outputs.tags }}-aarch64-linux \
${{ steps.docker-meta.outputs.tags }}-armv7-linux
docker manifest push \
ghcr.io/${{ github.repository }}:latest
Expand Down

0 comments on commit 300cb10

Please sign in to comment.