Use latest git-lfs and not hardcode

This commit is contained in:
Mark Young
2025-11-03 11:12:14 -06:00
parent 5a23638b3e
commit 5d52464754
2 changed files with 3 additions and 4 deletions
-4
View File
@@ -1,10 +1,6 @@
FROM ubuntu:focal
LABEL maintainer="[email protected]"
ARG DUMB_INIT_VERSION="1.2.2"
# TODO: remove git PPA and skopeo customizations for focal when focal hits EOL
ENV GIT_LFS_VERSION="3.2.0"
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
+3
View File
@@ -28,6 +28,9 @@ function install_aws-cli() {
function install_git-lfs() {
local DPKG_ARCH
DPKG_ARCH="$(dpkg --print-architecture)"
GIT_LFS_VERSION=$(curl -sL -H "Accept: application/vnd.github+json" \
https://api.github.com/repos/git-lfs/git-lfs/releases/latest \
| jq -r '.tag_name' | sed 's/^v//g')
curl -s "https://github.com/git-lfs/git-lfs/releases/download/v${GIT_LFS_VERSION}/git-lfs-linux-${DPKG_ARCH}-v${GIT_LFS_VERSION}.tar.gz" -L -o /tmp/lfs.tar.gz
tar -xzf /tmp/lfs.tar.gz -C /tmp