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 <xiaolunwen@gmail.com>
Reviewed-by: John Olheiser <john+gitea@jolheiser.com>
Co-authored-by: Kyle <kyle@noreply.gitea.io>
Co-committed-by: Kyle <kyle@noreply.gitea.io>
This commit is contained in:
Kyle 2023-02-28 23:41:42 +08:00 committed by John Olheiser
parent e3b724b24d
commit 56e84fe1c2
1 changed files with 5 additions and 5 deletions

View File

@ -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 \