hack(authors): bump to alpine 3.20

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2024-09-05 11:16:27 +02:00
parent ed341bafd0
commit 29d367bdd4
No known key found for this signature in database
GPG Key ID: ADE44D8C9D44FBE4

View File

@ -1,20 +1,21 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
FROM alpine:3.14 AS gen ARG ALPINE_VERSION=3.20
FROM alpine:${ALPINE_VERSION} AS gen
RUN apk add --no-cache git RUN apk add --no-cache git
WORKDIR /src WORKDIR /src
RUN --mount=type=bind,target=. <<EOT RUN --mount=type=bind,target=. <<EOT
#!/usr/bin/env bash set -e
set -e mkdir /out
mkdir /out # see also ".mailmap" for how email addresses and names are deduplicated
# see also ".mailmap" for how email addresses and names are deduplicated {
{
echo "# This file lists all individuals having contributed content to the repository." echo "# This file lists all individuals having contributed content to the repository."
echo "# For how it is generated, see hack/dockerfiles/authors.Dockerfile." echo "# For how it is generated, see hack/dockerfiles/authors.Dockerfile."
echo echo
git log --format='%aN <%aE>' | LC_ALL=C.UTF-8 sort -uf git log --format='%aN <%aE>' | LC_ALL=C.UTF-8 sort -uf
} > /out/AUTHORS } > /out/AUTHORS
cat /out/AUTHORS cat /out/AUTHORS
EOT EOT
FROM scratch AS update FROM scratch AS update
@ -22,12 +23,12 @@ COPY --from=gen /out /
FROM gen AS validate FROM gen AS validate
RUN --mount=type=bind,target=.,rw <<EOT RUN --mount=type=bind,target=.,rw <<EOT
set -e set -e
git add -A git add -A
cp -rf /out/* . cp -rf /out/* .
if [ -n "$(git status --porcelain -- AUTHORS)" ]; then if [ -n "$(git status --porcelain -- AUTHORS)" ]; then
echo >&2 'ERROR: Authors result differs. Please update with "make authors"' echo >&2 'ERROR: Authors result differs. Please update with "make authors"'
git status --porcelain -- AUTHORS git status --porcelain -- AUTHORS
exit 1 exit 1
fi fi
EOT EOT