mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
Inital commit.
This commit is contained in:
15
images/linux/scripts/base/repos.sh
Normal file
15
images/linux/scripts/base/repos.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
################################################################################
|
||||
## 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 update
|
||||
|
||||
# Install Microsoft GPG public key
|
||||
curl -L https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
|
||||
Reference in New Issue
Block a user