mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
16 lines
475 B
Bash
Executable file
16 lines
475 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -xeuo pipefail
|
|
IFS=$'\n\t'
|
|
|
|
LFS_DOWNLOAD_URL="https://github.com/git-lfs/git-lfs/releases/download/v${LFS_VERSION}/git-lfs-linux-$(dpkg --print-architecture)-v${LFS_VERSION}.tar.gz"
|
|
|
|
mkdir build \
|
|
&& curl -fsSL "$LFS_DOWNLOAD_URL" -o git-lfs.tar.gz \
|
|
&& echo "$LFS_DOWNLOAD_SHA256 git-lfs.tar.gz" | sha256sum -c - \
|
|
&& tar -C build -xzf git-lfs.tar.gz \
|
|
&& cd build \
|
|
&& cp git-lfs /usr/local/bin/ \
|
|
&& cd .. \
|
|
&& rm -rf build \
|
|
&& rm git-lfs.tar.gz
|