From 56e84fe1c25cac0f4c38e51c1a0b6412236ef091 Mon Sep 17 00:00:00 2001 From: Kyle Date: Tue, 28 Feb 2023 23:41:42 +0800 Subject: [PATCH] version-lock git at v2.38.4 (#19) Feel free to reject this, but I feel we should be building the test image with the same version of git we are deploying in released docker images. Since we're using alpine 3.17, that should be `2.38.4`: https://pkgs.alpinelinux.org/packages?name=git&branch=v3.17&repo=&arch=&maintainer= Reviewed-on: https://gitea.com/gitea/test-env/pulls/19 Reviewed-by: Lunny Xiao Reviewed-by: John Olheiser Co-authored-by: Kyle Co-committed-by: Kyle --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9bc0d29..2a11b77 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,14 +12,14 @@ RUN addgroup \ --gid $GITEA_GID \ gitea -# upgrade git to v2.39.1 -RUN curl -SL https://github.com/git/git/archive/v2.39.1.tar.gz \ +# version-lock git to v2.38.4 to match alpine 3.17 +RUN curl -SL https://github.com/git/git/archive/v2.38.4.tar.gz \ | tar -xzv -C /go \ && apt-get update \ && apt-get install -y libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev \ - && make -C /go/git-2.39.1 prefix=/usr all \ - && make -C /go/git-2.39.1 prefix=/usr install \ - && rm -rf /go/git-2.39.1 \ + && make -C /go/git-2.38.4 prefix=/usr all \ + && make -C /go/git-2.38.4 prefix=/usr install \ + && rm -rf /go/git-2.38.4 \ # install git-lfs && curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \ && apt-get install -y git-lfs \