mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
[Ubuntu] Add Ubuntu Server 22.04 LTS template (#5454)
This commit is contained in:
committed by
GitHub
parent
623df76820
commit
9d80842cc3
@@ -4,5 +4,19 @@
|
||||
## Desc: Installs powershellcore
|
||||
################################################################################
|
||||
|
||||
# Install Powershell
|
||||
apt-get install -y powershell
|
||||
# Source the helpers for use with the script
|
||||
source $HELPER_SCRIPTS/os.sh
|
||||
source $HELPER_SCRIPTS/install.sh
|
||||
|
||||
if isUbuntu22; then
|
||||
# Install libssl1.1
|
||||
download_with_retries "http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1l-1ubuntu1.2_amd64.deb" "/tmp"
|
||||
dpkg -i /tmp/libssl1.1_1.1.1l-1ubuntu1.2_amd64.deb
|
||||
|
||||
# Install Powershell
|
||||
download_with_retries "https://github.com/PowerShell/PowerShell/releases/download/v7.2.3/powershell-lts_7.2.3-1.deb_amd64.deb" "/tmp"
|
||||
dpkg -i /tmp/powershell-lts_7.2.3-1.deb_amd64.deb
|
||||
else
|
||||
# Install Powershell
|
||||
apt-get install -y powershell
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user