Skip to content

Commit

Permalink
release.sh, Dockerfile: always --pull, use alpine:latest, fix tagging
Browse files Browse the repository at this point in the history
Signed-off-by: Thilo Fromm <thilo.alexander@gmail.com>
  • Loading branch information
t-lo committed Nov 28, 2023
1 parent e80fd16 commit 8b67d7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# First, build the metrics exporter and the "prips" (print ip ranges) tool.
FROM alpine AS builder
FROM alpine:latest AS builder
ARG postfix_exporter_version=0.3.0
ARG fail2ban_exporter_version=0.9.0
ARG prips_version=1.2.0
Expand Down Expand Up @@ -37,7 +37,7 @@ RUN cd "/prips-$prips_version" \
&& mv prips /


FROM alpine
FROM alpine:latest

COPY --from=builder /postfix_exporter /fail2ban-prometheus-exporter /prips /
RUN apk update \
Expand Down
4 changes: 2 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ if [ -n "${untracked}" ] ; then
fi

yell "Building the container image"
docker build -t "${container}:${version}" .
docker tag "${container}:latest" "${container}:${version}"
docker build --pull -t "${container}:${version}" .
docker tag "${container}:${version}" "${container}:latest"

yell "Creating the release tarball"
echo "${version}" >VERSION
Expand Down

0 comments on commit 8b67d7d

Please sign in to comment.