Skip to content

Commit

Permalink
Use buildx to build for arm64, too
Browse files Browse the repository at this point in the history
  • Loading branch information
mat committed Nov 13, 2024
1 parent ce36b87 commit af66c90
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ jobs:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build Docker image
run: docker build --platform=linux/amd64 -t matthiasluedtke/iconserver:latest .

- name: Push Docker image
run: docker push matthiasluedtke/iconserver:latest
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and Push Multi-Platform Docker image
run: |
docker buildx build \
--platform linux/amd64,linux/arm64 \
-t matthiasluedtke/iconserver:latest \
--push .

0 comments on commit af66c90

Please sign in to comment.