bump git & lint

This commit is contained in:
techknowlogick 2022-04-21 09:21:44 +08:00
parent 5926db1574
commit 46621d15e4
1 changed files with 6 additions and 6 deletions

View File

@ -12,17 +12,17 @@ RUN addgroup \
--gid $GITEA_GID \
gitea
# upgrade git to v2.35.1
RUN curl -SL https://github.com/git/git/archive/v2.35.1.tar.gz \
# upgrade git to v2.36.0
RUN curl -SL https://github.com/git/git/archive/v2.36.0.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.35.1 prefix=/usr all \
&& make -C /go/git-2.35.1 prefix=/usr install \
&& rm -rf /go/git-2.35.1 \
&& make -C /go/git-2.36.0 prefix=/usr all \
&& make -C /go/git-2.36.0 prefix=/usr install \
&& rm -rf /go/git-2.36.0 \
# install git-lfs
&& curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
&& apt-get install -y git-lfs \
# install golangci-lint
&& go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.44.2 \
&& go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.45.2 \
&& golangci-lint --version