This commit is contained in:
Kwitsch 2022-09-16 10:54:16 +02:00
parent 763fc48e7d
commit 5580a51016
2 changed files with 5 additions and 2 deletions

View File

@ -61,6 +61,8 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm,arm64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
@ -111,12 +113,12 @@ jobs:
echo "VERSION: ${VERSION}"
echo "BUILD_TIME: ${BUILD_TIME}"
#test removed ,linux/arm/v6,linux/arm/v7,linux/arm64
#test removed ,linux/arm/v7,linux/arm64
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64
platforms: linux/amd64,linux/arm/v6
push: true
tags: ghcr.io/${{ github.repository }}:${{ steps.extract_branch.outputs.branch }}
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}:buildcache

View File

@ -26,6 +26,7 @@ RUN --mount=target=. \
--mount=type=cache,target=/root/.cache/go-build,sharing=locked \
--mount=type=cache,target=/go/pkg \
env \
CGO_ENABLED=0 \
GOOS=$TARGETOS \
GOARCH=$TARGETARCH \
GOARM=$TARGETVARIANT \