trying to fix CI
Some checks failed
mozhi pipeline / Push Docker image to Codeberg docker registry (push) Failing after 15m11s
mozhi pipeline / Build and publish artifacts (push) Failing after 5m44s

This commit is contained in:
Arya 2024-07-19 20:25:58 +05:30
parent 084aa94c3b
commit c233475390
Signed by: arya
GPG Key ID: 842D12BDA50DF120

View File

@ -7,11 +7,11 @@ RUN apk --no-cache add git
COPY . . 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 CGO_ENABLED=0 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
WORKDIR /app WORKDIR /app
COPY --from=build /src/mozhi . COPY --from=build /src/mozhi .