mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 11:37:00 +00:00
* [ubuntu] Cleanup bash scripts * Fix ms-repos lsb_release * Fix install-bicep url * Fix install-nvm
26 lines
821 B
Bash
26 lines
821 B
Bash
#!/bin/bash -e
|
|
################################################################################
|
|
## File: install-pipx-packages.sh
|
|
## Desc: Install tools via pipx
|
|
################################################################################
|
|
|
|
# Source the helpers for use with the script
|
|
source $HELPER_SCRIPTS/install.sh
|
|
|
|
export PATH="$PATH:/opt/pipx_bin"
|
|
|
|
pipx_packages=$(get_toolset_value ".pipx[] .package")
|
|
|
|
for package in $pipx_packages; do
|
|
echo "Install $package into default python"
|
|
pipx install $package
|
|
|
|
# https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html
|
|
# Install ansible into an existing ansible-core Virtual Environment
|
|
if [[ $package == "ansible-core" ]]; then
|
|
pipx inject $package ansible
|
|
fi
|
|
done
|
|
|
|
invoke_tests "Common" "PipxPackages"
|