add arm64 support hopefully (closes #2)
Some checks failed
mozhi pipeline / Push Docker image to Codeberg docker registry (push) Failing after 36s
mozhi pipeline / Build and publish artifacts (push) Has been cancelled

This commit is contained in:
Arya 2023-09-21 21:53:49 +05:30
parent 2541df63fe
commit 916a22f57b
Signed by: arya
GPG Key ID: 842D12BDA50DF120
2 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ jobs:
file: ./Dockerfile
push: true
tags: codeberg.org/aryak/mozhi:latest
platforms: linux/amd64, linux/arm64
build_artifact:
runs-on: ubuntu-latest
name: Build and publish artifacts

View File

@ -9,7 +9,7 @@ COPY . .
ENV GOPRIVATE=codeberg.org/aryak/libmozhi
RUN go mod download
RUN go run github.com/swaggo/swag/cmd/swag@latest init --parseDependency
RUN GOOS=linux GOARCH=$TARGETARCH go build -o /src/mozhi
RUN CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH go build -o /src/mozhi
FROM alpine:3.16 as bin