Supports Raspberry Pi using arm32v7 or arm64 (#92)

* Supports Raspberry Pi using arm32v7

* Add arm64
This commit is contained in:
SidneySun 2022-06-14 01:18:02 +08:00 committed by GitHub
parent 3e0e8a0f1e
commit 2c198878c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,6 +31,12 @@ jobs:
with:
setAllVars: true
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry docker hub
@ -64,9 +70,10 @@ jobs:
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
build-args: VER=${{ env.NBGV_SimpleVersion }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}