gitlab-build-images/scripts/install-lfs
Kamil Trzciński 384f6231b4 Update scripts to compile arm64 based images
This changes all binaries to be platform dependent
instead of being amd64 hardcoded.
2022-05-02 17:20:44 +02:00

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