mirror of
https://github.com/TECHNOFAB11/docsonnet.git
synced 2026-02-02 15:45:12 +01:00
chore/fix: switch release pipeline to goreleaser & ghcr.io (#40)
* chore: add goreleaser config + adapt Dockerfile Signed-off-by: Matthias Riegler <me@xvzf.tech> * chore: cleanup makefile and deprecated pipeline Signed-off-by: Matthias Riegler <me@xvzf.tech> * chore: go mod tidy -go=1.19 Signed-off-by: Matthias Riegler <me@xvzf.tech> --------- Signed-off-by: Matthias Riegler <me@xvzf.tech>
This commit is contained in:
parent
37dd4fbc10
commit
b56a421ef2
7 changed files with 54 additions and 99 deletions
22
Dockerfile
22
Dockerfile
|
|
@ -1,21 +1,3 @@
|
|||
FROM --platform=$BUILDPLATFORM golang:1.16.4 as base
|
||||
|
||||
ENV GO111MODULE=on
|
||||
WORKDIR /app
|
||||
|
||||
COPY go.mod .
|
||||
COPY go.sum .
|
||||
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
|
||||
FROM base AS builder
|
||||
|
||||
ENV GOARCH=$TARGETARCH
|
||||
RUN CGO_ENABLED=0 go build -ldflags='-s -w -extldflags "-static"' .
|
||||
|
||||
FROM alpine:3.12
|
||||
COPY --from=builder /app/docsonnet /usr/local/bin
|
||||
|
||||
ENTRYPOINT ["docsonnet"]
|
||||
ENTRYPOINT ["/usr/bin/docsonnet"]
|
||||
COPY docsonnet /usr/bin/docsonnet
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue