mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-08 17:42:56 +01:00
17 lines
401 B
Bash
Executable file
17 lines
401 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -xeuo pipefail
|
|
IFS=$'\n\t'
|
|
|
|
mkdir build \
|
|
&& curl -fsSL "$GIT_DOWNLOAD_URL" -o git.tar.gz \
|
|
&& echo "$GIT_DOWNLOAD_SHA256 git.tar.gz" | sha256sum -c - \
|
|
&& tar -C build -xzf git.tar.gz \
|
|
&& cd build/git-$GIT_VERSION \
|
|
&& chmod +x configure \
|
|
&& ./configure --with-libpcre \
|
|
&& make all \
|
|
&& make install PREFIX=/usr/local \
|
|
&& cd ../.. \
|
|
&& rm -rf build \
|
|
&& rm git.tar.gz
|