From 887661cb618272bb0d4594b6f507a3f88aa709f5 Mon Sep 17 00:00:00 2001 From: hackercat Date: Sun, 2 May 2021 18:09:59 +0000 Subject: [PATCH] fix: install `git-lfs` on `focal`/`bionic` only --- linux/ubuntu/act/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux/ubuntu/act/Dockerfile b/linux/ubuntu/act/Dockerfile index b28ae0a..7860263 100644 --- a/linux/ubuntu/act/Dockerfile +++ b/linux/ubuntu/act/Dockerfile @@ -37,7 +37,8 @@ RUN set -Eeuxo pipefail \ && printf "Installing packages\n\n" \ && apt-get -yq update \ && printf "Updated apt lists and upgraded packages\n\n" \ - && apt-get -yq install --no-install-recommends ssh lsb-release gawk jq curl git git-lfs wget sudo gnupg-agent ca-certificates software-properties-common apt-transport-https libyaml-0-2 zstd unzip xz-utils "$(apt-cache search libicu | grep -E 'libicu[[:digit:]]+ -' | cut -d \" \" -f 1)" \ + && apt-get -yq install --no-install-recommends ssh lsb-release gawk jq curl git wget sudo gnupg-agent ca-certificates software-properties-common apt-transport-https libyaml-0-2 zstd unzip xz-utils "$(apt-cache search libicu | grep -E 'libicu[[:digit:]]+ -' | cut -d \" \" -f 1)" \ + && [[ "${TAG}" == "16.04" ]] && printf 'git-lfs not available for Xenial' || apt-get -yq install --no-install-recommends git-lfs \ && printf "Creating ~/.ssh and adding 'github.com'\n\n" \ && mkdir -p ~/.ssh \ && chmod 700 ~/.ssh \