fix(ci): rename workflows; add golang ci lint

This commit is contained in:
2025-08-12 09:14:34 +02:00
parent 375c92edaf
commit 26e4986b7e
15 changed files with 441 additions and 870 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 network interface names" \
org.opencontainers.image.documentation="https://git.cryptic.systems/volker.raschek/getidev#getidev" \
org.opencontainers.image.title="getidev" \
org.opencontainers.image.vendor="Markus Pesch" \
org.opencontainers.image.version="${VERSION}"
COPY --from=build /workspace/getidev /usr/bin/getidev
COPY getidev-* /usr/bin/app
ENTRYPOINT [ "/usr/bin/getidev" ]