Optimize CI

This commit is contained in:
video-prize-ranch
2022-06-03 18:45:14 -04:00
parent dea4a3e5f1
commit b5081f2c4d
2 changed files with 8 additions and 8 deletions

View File

@@ -1,11 +1,13 @@
FROM golang:alpine AS build
FROM --platform=$BUILDPLATFORM golang:alpine AS build
ARG TARGETARCH
WORKDIR /src
RUN apk --no-cache add git ca-certificates
RUN git clone https://codeberg.org/video-prize-ranch/rimgo .
RUN apk --no-cache add ca-certificates
COPY . .
RUN go mod download
RUN CGO_ENABLED=0 go build
RUN GOOS=linux GOARCH=$TARGETARCH CGO_ENABLED=0 go build
FROM scratch as bin