chore/fix: switch release pipeline to goreleaser & ghcr.io (#43)

* chore: add goreleaser config + adapt Dockerfile
* chore: cleanup makefile and deprecated pipeline
* chore: go mod tidy -go=1.19
* feat: add release pipeline

---------

Signed-off-by: Matthias Riegler <me@xvzf.tech>
This commit is contained in:
Matthias Riegler 2023-02-16 09:38:05 +01:00 committed by GitHub
parent 01f689fb4a
commit b2e9d3bb12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 106 additions and 120 deletions

View file

@ -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