0

Support multi-platform docker builds with qemu

This commit is contained in:
Gabe Kangas 2022-06-18 23:05:50 -07:00
parent 233a2ccb2f
commit a137d7ebb9
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA
2 changed files with 8 additions and 3 deletions

View File

@ -24,6 +24,13 @@ jobs:
run: echo "${{ secrets.GH_CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
if: env.GH_CR_PAT != null
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
with:
image: tonistiigi/binfmt:latest
platforms: all
- uses: actions/checkout@v3
- name: Checkout and build
if: env.GH_CR_PAT != null

View File

@ -11,6 +11,4 @@ echo "Building Docker image ${DOCKER_IMAGE}..."
# Change to the root directory of the repository
cd $(git rev-parse --show-toplevel)
earthly --ci --push +docker --image="ghcr.io/owncast/${DOCKER_IMAGE}" --tag=nightly --version=${VERSION}
# docker push ghcr.io/owncast/${DOCKER_IMAGE}:nightly
earthly --ci --push +docker-all --image="ghcr.io/owncast/${DOCKER_IMAGE}" --tag=nightly --version="${VERSION}"