Skip to content

Commit

Permalink
add qemu
Browse files Browse the repository at this point in the history
  • Loading branch information
ypoplavs committed Aug 18, 2022
1 parent 143ea56 commit 46d2211
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ concurrency:

on:
push:
branches: [main, ARM64_build]
branches: [main]
pull_request:
branches: [main]

Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 46d2211

Please sign in to comment.