mirror of
https://github.com/actions/runner-images.git
synced 2025-12-18 15:57:17 +00:00
Add git-ftp on Ubuntu image (#950)
* Add git-ftp * Remove comment * Minor fix * Move installation to git.sh
This commit is contained in:
committed by
GitHub
parent
9b76f6f84b
commit
7976605290
@@ -17,6 +17,9 @@ git --version
|
|||||||
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
||||||
apt-get install -y --no-install-recommends git-lfs
|
apt-get install -y --no-install-recommends git-lfs
|
||||||
|
|
||||||
|
# Install git-ftp
|
||||||
|
apt-get install git-ftp -y
|
||||||
|
|
||||||
# Run tests to determine that the software installed as expected
|
# Run tests to determine that the software installed as expected
|
||||||
echo "Testing git installation"
|
echo "Testing git installation"
|
||||||
if ! command -v git; then
|
if ! command -v git; then
|
||||||
@@ -28,6 +31,11 @@ if ! command -v git-lfs; then
|
|||||||
echo "git-lfs was not installed"
|
echo "git-lfs was not installed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
echo "Testing git-ftp installation"
|
||||||
|
if ! command -v git-ftp; then
|
||||||
|
echo "git-ftp was not installed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Document what was added to the image
|
# Document what was added to the image
|
||||||
echo "Lastly, document the installed versions"
|
echo "Lastly, document the installed versions"
|
||||||
@@ -35,6 +43,7 @@ echo "Lastly, document the installed versions"
|
|||||||
DocumentInstalledItem "Git ($(git --version 2>&1 | cut -d ' ' -f 3))"
|
DocumentInstalledItem "Git ($(git --version 2>&1 | cut -d ' ' -f 3))"
|
||||||
# git-lfs/2.6.1 (GitHub; linux amd64; go 1.11.1)
|
# git-lfs/2.6.1 (GitHub; linux amd64; go 1.11.1)
|
||||||
DocumentInstalledItem "Git Large File Storage (LFS) ($(git-lfs --version 2>&1 | cut -d ' ' -f 1 | cut -d '/' -f 2))"
|
DocumentInstalledItem "Git Large File Storage (LFS) ($(git-lfs --version 2>&1 | cut -d ' ' -f 1 | cut -d '/' -f 2))"
|
||||||
|
DocumentInstalledItem "Git-ftp ($(git-ftp --version | cut -d ' ' -f 3))"
|
||||||
|
|
||||||
#Install hub
|
#Install hub
|
||||||
snap install hub --classic
|
snap install hub --classic
|
||||||
|
|||||||
Reference in New Issue
Block a user