Use mirror for ppa:ondrej/php on Ubuntu 16.04

Remove support for Ubuntu 16.04 self-hosted runners
This commit is contained in:
Shivam Mathur
2021-05-01 11:07:24 +05:30
parent 9149639a33
commit ef477a1dd7
2 changed files with 13 additions and 5 deletions
+4
View File
@@ -82,6 +82,10 @@ run_script() {
# Function to install required packages on self-hosted runners.
self_hosted_setup() {
if [ "$runner" = "self-hosted" ]; then
if [ "$DISTRIB_RELEASE" = "16.04" ] && [ "$CONTAINER" != "shivammathur/node" ]; then
add_log "$cross" "Ubuntu" "Ubuntu 16.04 (Xenial Xerus) is no longer supported on self-hosted runner"
exit 1
fi
if [[ "${version:?}" =~ $old_versions ]]; then
add_log "$cross" "PHP" "PHP $version is not supported on self-hosted runner"
exit 1