feat: ubuntu-2204 (#52)
* feat: ubuntu-2204 * remove unnecessary git-lfs install
This commit is contained in:
@@ -42,6 +42,7 @@ jobs:
|
|||||||
- linux/amd64,linux/arm64,linux/armhf
|
- linux/amd64,linux/arm64,linux/armhf
|
||||||
TAG:
|
TAG:
|
||||||
- latest
|
- latest
|
||||||
|
- 22.04
|
||||||
- 20.04
|
- 20.04
|
||||||
- 18.04
|
- 18.04
|
||||||
steps:
|
steps:
|
||||||
@@ -211,6 +212,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
TAG:
|
TAG:
|
||||||
- latest
|
- latest
|
||||||
|
- 22.04
|
||||||
- 20.04
|
- 20.04
|
||||||
- 18.04
|
- 18.04
|
||||||
PLATFORMS:
|
PLATFORMS:
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ apt-get install -y git-lfs
|
|||||||
LSB_OS_VERSION="${VERSION_ID//\./}"
|
LSB_OS_VERSION="${VERSION_ID//\./}"
|
||||||
echo "LSB_OS_VERSION=${LSB_OS_VERSION}" | tee -a "/etc/environment"
|
echo "LSB_OS_VERSION=${LSB_OS_VERSION}" | tee -a "/etc/environment"
|
||||||
|
|
||||||
wget -qO "/imagegeneration/toolset.json" "https://raw.githubusercontent.com/actions/virtual-environments/main/images/linux/toolsets/toolset-${LSB_OS_VERSION}.json"
|
wget -qO "/imagegeneration/toolset.json" "https://raw.githubusercontent.com/actions/virtual-environments/main/images/linux/toolsets/toolset-${LSB_OS_VERSION}.json" || echo "File not available"
|
||||||
wget -qO "/imagegeneration/LICENSE" "https://raw.githubusercontent.com/actions/virtual-environments/main/LICENSE"
|
wget -qO "/imagegeneration/LICENSE" "https://raw.githubusercontent.com/actions/virtual-environments/main/LICENSE"
|
||||||
|
|
||||||
if [ "$(uname -m)" = x86_64 ]; then
|
if [ "$(uname -m)" = x86_64 ]; then
|
||||||
@@ -83,12 +83,6 @@ if [ "$(uname -m)" = x86_64 ]; then
|
|||||||
chmod +x "/usr/bin/jq"
|
chmod +x "/usr/bin/jq"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${VERSION_ID}" == "16.04" ]]; then
|
|
||||||
printf 'git-lfs not available for Xenial'
|
|
||||||
else
|
|
||||||
apt-get -yq install --no-install-recommends --no-install-suggests git-lfs
|
|
||||||
fi
|
|
||||||
|
|
||||||
printf "\n\t🐋 Updated apt lists and upgraded packages 🐋\t\n"
|
printf "\n\t🐋 Updated apt lists and upgraded packages 🐋\t\n"
|
||||||
|
|
||||||
printf "\n\t🐋 Creating ~/.ssh and adding 'github.com' 🐋\t\n"
|
printf "\n\t🐋 Creating ~/.ssh and adding 'github.com' 🐋\t\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user