From 46d2211a71a18343e0c9cd48f3883db3a4d02d43 Mon Sep 17 00:00:00 2001 From: Yuliia Poplavska Date: Thu, 18 Aug 2022 17:34:46 +0300 Subject: [PATCH] add qemu --- .github/workflows/build.yml | 10 +++++++++- server/Dockerfile | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1c6dbfb..c74d9f8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,7 +6,7 @@ concurrency: on: push: - branches: [main, ARM64_build] + branches: [main] pull_request: branches: [main] @@ -15,10 +15,18 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 + - name: build run: make build + with: + platforms: linux/amd64,linux/arm64 + - name: Set up Go uses: actions/setup-go@v2 with: diff --git a/server/Dockerfile b/server/Dockerfile index 51c0a77..343c110 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -1,4 +1,4 @@ -#ARG BUILDPLATFORM +ARG BUILDPLATFORM FROM --platform=$BUILDPLATFORM docker.io/golang:1.17 as builder WORKDIR /go/src # Copy `go.mod` for definitions and `go.sum` to invalidate the next layer