Skip to content

Commit a3ec4d8

Browse files
committed
Use latest git-lfs and not hardcode
1 parent cea41bb commit a3ec4d8

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Dockerfile.base

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
FROM ubuntu:focal
22
LABEL maintainer="[email protected]"
33

4-
ARG DUMB_INIT_VERSION="1.2.2"
5-
# TODO: remove git PPA and skopeo customizations for focal when focal hits EOL
6-
ENV GIT_LFS_VERSION="3.2.0"
7-
84
ENV LANG=en_US.UTF-8
95
ENV LANGUAGE=en_US.UTF-8
106
ENV LC_ALL=en_US.UTF-8

build/tools.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ function install_aws-cli() {
2828
function install_git-lfs() {
2929
local DPKG_ARCH
3030
DPKG_ARCH="$(dpkg --print-architecture)"
31+
GIT_LFS_VERSION=$(curl -sL -H "Accept: application/vnd.github+json" \
32+
https://api.github.com/repos/git-lfs/git-lfs/releases/latest \
33+
| jq -r '.tag_name' | sed 's/^v//g')
3134

3235
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
3336
tar -xzf /tmp/lfs.tar.gz -C /tmp

0 commit comments

Comments
 (0)