feat: update Makefile, renovate, gitlangci-lint, markdownlint, container-image

This commit is contained in:
2024-04-08 16:51:24 +02:00
parent 4a82c7db0e
commit 3c1d4465fa
12 changed files with 966 additions and 76 deletions

View File

@ -1,31 +1,28 @@
ARG BASE_IMAGE
ARG BUILD_IMAGE
FROM docker.io/library/golang:1.21.6-alpine3.18 as build
# BUILD
# =====================================================================
FROM ${BUILD_IMAGE} AS build
ARG GONOPROXY
ARG GONOSUMDB
ARG GOPRIVATE
ARG GOPROXY
ARG GOSUMDB
ARG VERSION
COPY ./ /workspace
RUN cd /workspace && \
GONOPROXY=${GONOPROXY} \
GONOSUMDB=${GONOSUMDB} \
GOPRIVATE=${GOPRIVATE} \
GOPROXY=${GOPROXY} \
GOSUMDB=${GOSUMDB} \
VERSION=${VERSION} \
make all
WORKDIR /workspace
RUN set -ex && \
apk update && \
apk add git make && \
make all VERSION=${VERSION}
# TARGET
# =====================================================================
FROM ${BASE_IMAGE}
FROM docker.io/library/alpine:3.19
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