mirror of
https://codeberg.org/aryak/mozhi
synced 2024-12-22 13:19:50 +05:30
add arm64 support hopefully (closes #2)
This commit is contained in:
parent
2541df63fe
commit
916a22f57b
@ -25,6 +25,7 @@ jobs:
|
|||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: codeberg.org/aryak/mozhi:latest
|
tags: codeberg.org/aryak/mozhi:latest
|
||||||
|
platforms: linux/amd64, linux/arm64
|
||||||
build_artifact:
|
build_artifact:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Build and publish artifacts
|
name: Build and publish artifacts
|
||||||
|
@ -9,7 +9,7 @@ COPY . .
|
|||||||
ENV GOPRIVATE=codeberg.org/aryak/libmozhi
|
ENV GOPRIVATE=codeberg.org/aryak/libmozhi
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
RUN go run github.com/swaggo/swag/cmd/swag@latest init --parseDependency
|
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
|
FROM alpine:3.16 as bin
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user