github.com/nilium/gitlab-runner@v12.5.0+incompatible/ci/install_git_lfs (about)

     1  #!/usr/bin/env bash
     2  
     3  set -eo pipefail
     4  
     5  downloadURL="https://github.com/git-lfs/git-lfs/releases/download/v${GIT_LFS_VERSION}/git-lfs-linux-amd64-v${GIT_LFS_VERSION}.tar.gz"
     6  
     7  wget "${downloadURL}" -O /tmp/git-lfs.tar.gz
     8  
     9  echo "${GIT_LFS_256_CHECKSUM}  /tmp/git-lfs.tar.gz" > /tmp/checksums
    10  sha256sum -c /tmp/checksums
    11  
    12  tar -xzf /tmp/git-lfs.tar.gz -C /tmp
    13  cp /tmp/git-lfs /usr/local/bin
    14  chmod +x /usr/local/bin/git-lfs
    15  
    16  git-lfs install --skip-repo
    17  
    18  rm -rf /tmp/*