Skip to content

Commit

Permalink
try multi arch qith qemu
Browse files Browse the repository at this point in the history
  • Loading branch information
alcaprar committed Jun 1, 2024
1 parent 1ba5fba commit d5c57ea
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/publish-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,19 @@ jobs:
permissions:
packages: write
contents: read
strategy:
matrix:
platform: [linux/amd64, linux/arm64, linux/arm]
steps:
- uses: actions/checkout@v4

-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build image
run: docker build . --file Dockerfile --tag $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}"
run: docker build . --file Dockerfile --tag $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}" --platform ${{ matrix.platform }}

- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
Expand Down

0 comments on commit d5c57ea

Please sign in to comment.