fix(ci): replace drone with gitea actions
All checks were successful
Markdown linter / markdown-lint (push) Successful in 11s
Golang Tests / unittest (push) Successful in 43s

This commit is contained in:
2025-05-13 20:28:50 +02:00
parent a91d50bc29
commit 756d668fc9
10 changed files with 285 additions and 717 deletions

View File

@ -1,29 +1,5 @@
FROM docker.io/library/golang:1.22.3-alpine3.18 as build
FROM scratch AS build
ARG VERSION
COPY ./ /workspace
WORKDIR /workspace
RUN set -ex && \
apk update && \
apk add git make && \
make all VERSION=${VERSION}
# TARGET
# =====================================================================
FROM docker.io/library/alpine:3.21
ARG VERSION=latest
LABEL org.opencontainers.image.authors="Markus Pesch" \
org.opencontainers.image.description="Return the ip address of the router to forward traffic to an external ip address" \
org.opencontainers.image.documentation="https://git.cryptic.systems/volker.raschek/getpsrc#getpsrc" \
org.opencontainers.image.title="getpsrc" \
org.opencontainers.image.vendor="Markus Pesch" \
org.opencontainers.image.version="${VERSION}"
COPY --from=build /workspace/getpsrc /usr/bin/getpsrc
COPY getpsrc-* /usr/bin/getpsrc
ENTRYPOINT [ "/usr/bin/getpsrc" ]