mirror of
https://github.com/hanzoai/docker-github-actions-runner.git
synced 2026-09-30 21:42:55 +00:00
Use latest git-lfs and not hardcode
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user