mirror of
https://github.com/actions/runner-images.git
synced 2025-12-17 23:28:57 +00:00
Move list of pipx packages into toolset
This commit is contained in:
@@ -7,22 +7,19 @@
|
|||||||
|
|
||||||
export PATH="$PATH:/opt/pipx_bin"
|
export PATH="$PATH:/opt/pipx_bin"
|
||||||
|
|
||||||
# Install yamlint
|
toolset="$INSTALLER_SCRIPT_FOLDER/toolset.json"
|
||||||
pipx install yamllint
|
pipx_packages=$(jq -r ".pipx[]" $toolset)
|
||||||
|
|
||||||
if ! command -v yamllint; then
|
for package in $pipx_packages; do
|
||||||
echo "yamllint was not installed"
|
echo "Install $package"
|
||||||
|
pipx install $package
|
||||||
|
done
|
||||||
|
|
||||||
|
# Run tests to determine that the software installed as expected
|
||||||
|
echo "Testing to make sure that script performed as expected, and basic scenarios work"
|
||||||
|
for cmd in $pipx_packages; do
|
||||||
|
if ! command -v $cmd; then
|
||||||
|
echo "$cmd was not installed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
echo "yamllint is successfully installed"
|
|
||||||
|
|
||||||
# Install aws sam cli
|
|
||||||
pipx install aws-sam-cli --python /opt/hostedtoolcache/Python/3.7*/x64/bin/python3.7
|
|
||||||
|
|
||||||
if ! command -v sam; then
|
|
||||||
echo "aws sam cli was not installed"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "aws sam cli is successfully installed"
|
|
||||||
|
|||||||
@@ -188,5 +188,9 @@
|
|||||||
"node:12-alpine",
|
"node:12-alpine",
|
||||||
"ubuntu:14.04"
|
"ubuntu:14.04"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"pipx": [
|
||||||
|
"yamllint",
|
||||||
|
"aws-sam-cli"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -151,5 +151,9 @@
|
|||||||
"node:12-alpine",
|
"node:12-alpine",
|
||||||
"ubuntu:14.04"
|
"ubuntu:14.04"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"pipx": [
|
||||||
|
"yamllint",
|
||||||
|
"aws-sam-cli"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -240,6 +240,9 @@
|
|||||||
"scripts": [
|
"scripts": [
|
||||||
"{{template_dir}}/scripts/installers/pipx-packages.sh"
|
"{{template_dir}}/scripts/installers/pipx-packages.sh"
|
||||||
],
|
],
|
||||||
|
"environment_vars": [
|
||||||
|
"INSTALLER_SCRIPT_FOLDER={{user `installer_script_folder`}}"
|
||||||
|
],
|
||||||
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -242,6 +242,9 @@
|
|||||||
"scripts": [
|
"scripts": [
|
||||||
"{{template_dir}}/scripts/installers/pipx-packages.sh"
|
"{{template_dir}}/scripts/installers/pipx-packages.sh"
|
||||||
],
|
],
|
||||||
|
"environment_vars": [
|
||||||
|
"INSTALLER_SCRIPT_FOLDER={{user `installer_script_folder`}}"
|
||||||
|
],
|
||||||
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user