From 99579fc4e95ae7416b1028fe483c1f639e1cde47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20R=C3=BChl?= Date: Wed, 15 Feb 2023 11:28:21 +0100 Subject: [PATCH 1/2] feat: add arm64 support --- .github/workflows/docker-image-publish.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/docker-image-publish.yml b/.github/workflows/docker-image-publish.yml index 444e950..3367155 100644 --- a/.github/workflows/docker-image-publish.yml +++ b/.github/workflows/docker-image-publish.yml @@ -15,6 +15,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - name: Docker meta @@ -37,6 +39,7 @@ jobs: uses: docker/build-push-action@v2 with: context: . + platforms: linux/amd64,linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} From 672ec7a4c4363a25e25bc9f09b165b03cf681fcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20R=C3=BChl?= Date: Wed, 15 Feb 2023 11:36:24 +0100 Subject: [PATCH 2/2] fix: use implicit values for GOOS and GOARCH --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ac9646e..8785d86 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,7 +39,7 @@ COPY . . COPY --from=frontend ["/static/build", "ui/build"] # Set necessary environmet variables needed for the image and build the server. -ENV CGO_ENABLED=0 GOOS=linux GOARCH=amd64 +ENV CGO_ENABLED=0 # Run go build (with ldflags to reduce binary size). RUN go build -ldflags="-s -w" -o asynqmon ./cmd/asynqmon