feat: use goreleaser
Some checks failed
Markdown linter / markdown-lint (push) Successful in 8s
Update Docker Hub Description / update-description-on-hub-docker-io (push) Successful in 10s
Golang Tests / unittest (push) Has been cancelled

This commit is contained in:
2025-05-31 18:12:51 +02:00
parent dce11e0889
commit 3db9427be3
17 changed files with 404 additions and 861 deletions

View File

@ -1,26 +1,5 @@
FROM docker.io/library/golang:1.24.2-alpine3.21 AS build
FROM scratch AS build
ARG GONOPROXY
ARG GONOSUMDB
ARG GOPRIVATE
ARG GOPROXY
ARG VERSION
COPY drone-email-* /usr/bin/drone-email
COPY . /workspace
WORKDIR /workspace
RUN set -ex && \
apk update && \
apk add git make && \
make install DESTDIR=/drone-email PREFIX=/usr VERSION=${VERSION}
###############################################################################
FROM docker.io/library/alpine:3.21
RUN apk add --no-cache bash bash-completion ca-certificates tzdata
COPY --from=build /drone-email /
ENTRYPOINT [ "/usr/bin/drone-email" ]
ENTRYPOINT [ "/usr/bin/drone-email" ]