ci: multi-arch docker images
based on https://docs.docker.com/build/ci/github-actions/multi-platform/
This commit is contained in:
parent
530fbf5a26
commit
3e00dbd788
1 changed files with 4 additions and 0 deletions
4
.github/workflows/docker-image.yml
vendored
4
.github/workflows/docker-image.yml
vendored
|
@ -22,10 +22,14 @@ jobs:
|
|||
uses: ASzc/change-string-case-action@v5
|
||||
with:
|
||||
string: ${{ github.event.repository.name }}
|
||||
|
||||
- uses: docker/setup-qemu-action@v2
|
||||
- uses: docker/setup-buildx-action@v2
|
||||
- uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: |
|
||||
ghcr.io/${{ steps.owner.outputs.lowercase }}/${{ steps.repo.outputs.lowercase }}:latest
|
||||
|
|
Loading…
Reference in a new issue