File: install_git_lfs

package info (click to toggle)
gitlab-ci-multi-runner 14.10.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 31,248 kB
  • sloc: sh: 1,694; makefile: 384; asm: 79; ruby: 68
file content (18 lines) | stat: -rwxr-xr-x 464 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash

set -eo pipefail

downloadURL="https://github.com/git-lfs/git-lfs/releases/download/v${GIT_LFS_VERSION}/git-lfs-linux-amd64-v${GIT_LFS_VERSION}.tar.gz"

wget "${downloadURL}" -O /tmp/git-lfs.tar.gz

echo "${GIT_LFS_AMD64_CHECKSUM}  /tmp/git-lfs.tar.gz" > /tmp/checksums
sha256sum -c /tmp/checksums

tar -xzf /tmp/git-lfs.tar.gz -C /tmp
cp /tmp/git-lfs /usr/local/bin
chmod +x /usr/local/bin/git-lfs

git-lfs install --skip-repo

rm -rf /tmp/*