feat: use goreleaser
All checks were successful
Markdown linter / markdown-lint (push) Successful in 12s
Update Docker Hub Description / update-description-on-hub-docker-io (push) Successful in 14s
Golang Tests / unittest (push) Successful in 3m34s
Release / release (push) Successful in 8m47s
Release / sync-to-hub-docker-io (push) Successful in 55s

This commit is contained in:
2025-05-31 22:17:53 +02:00
parent 9532e618f9
commit 4b69e0636c
15 changed files with 532 additions and 683 deletions

View File

@@ -1,18 +1,5 @@
FROM docker.io/library/golang:1.17-alpine3.13 AS build
FROM scratch AS build
ARG VERSION=latest
COPY civ-* /usr/bin/civ
COPY . /workspace
WORKDIR /workspace
RUN set -ex && \
apk update && \
apk add git make && \
make install VERSION=${VERSION} DESTDIR=/civ PREFIX=/usr
FROM docker.io/library/alpine:3.21
COPY --from=build /civ /
ENTRYPOINT [ "/usr/bin/civ" ]
ENTRYPOINT [ "/usr/bin/civ" ]