From 33940d2cde706cf6b061a0920e7b936d41edb0de Mon Sep 17 00:00:00 2001 From: Andreas Fankhauser hiddenalpha.ch Date: Tue, 23 Aug 2022 23:07:34 +0200 Subject: Cleanup - Fix version string while dockerbuild. - Use quotes in log msgs. - Add apt cleanup in debian build example. - Fix off-by-one error in summary log msg. - Allow to clone by tag within Dockerfile. - Add some missing LFs in err msgs. --- contrib/build-using-docker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/build-using-docker/Dockerfile') diff --git a/contrib/build-using-docker/Dockerfile b/contrib/build-using-docker/Dockerfile index c56cacd..00c1132 100644 --- a/contrib/build-using-docker/Dockerfile +++ b/contrib/build-using-docker/Dockerfile @@ -2,7 +2,7 @@ ARG PARENT_IMAGE=alpine:3.16.0 FROM $PARENT_IMAGE -ARG GIT_TAG= +ARG GIT_TAG=master ARG CONFIGURE_OPTS= ARG PKGINIT=true ARG PKGADD="apk add" @@ -16,7 +16,7 @@ WORKDIR /work RUN true \ && $PKGINIT \ && $PKGADD $PKGS_TO_ADD \ - && git clone --depth 1 https://github.com/hiddenalpha/bulk-ln.git . \ + && git clone --depth 42 --branch "${GIT_TAG:?}" https://github.com/hiddenalpha/bulk-ln.git . \ && git config advice.detachedHead false \ && if test -n "$GIT_TAG"; then git checkout "$GIT_TAG"; fi \ && ./configure $CONFIGURE_OPTS \ -- cgit v1.1