mirror of
https://github.com/actions/runner-images.git
synced 2025-12-12 20:26:49 +00:00
19 lines
815 B
Bash
19 lines
815 B
Bash
#!/bin/bash -e
|
|
################################################################################
|
|
## File: repos.sh
|
|
## Desc: Installs official Microsoft package repos for the distribution
|
|
################################################################################
|
|
|
|
LSB_RELEASE=$(lsb_release -rs)
|
|
|
|
# Install Microsoft repository
|
|
wget https://packages.microsoft.com/config/ubuntu/$LSB_RELEASE/packages-microsoft-prod.deb
|
|
dpkg -i packages-microsoft-prod.deb
|
|
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
|
|
|
|
# Install Microsoft GPG public key
|
|
curl -L https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
|
|
|
|
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
|
|
mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
|
|
apt-get update |