Files
runner-images-PK/images/ubuntu/scripts/build/install-runner-package.sh
T

19 lines
663 B
Bash
Raw Normal View History

#!/bin/bash -e
################################################################################
2023-11-22 21:49:23 +01:00
## File: install-runner-package.sh
## Desc: Download and Install runner package
################################################################################
# Source the helpers for use with the script
source $HELPER_SCRIPTS/install.sh
DOWNLOAD_URL=$(get_github_package_download_url "actions/runner" 'test("actions-runner-linux-x64-[0-9]+\\.[0-9]{3}\\.[0-9]+\\.tar\\.gz")')
FILE_NAME="${DOWNLOAD_URL##*/}"
sudo mkdir -p /opt/runner-cache
download_with_retries "${DOWNLOAD_URL}" "/tmp" "${FILE_NAME}"
sudo mv /tmp/$FILE_NAME /opt/runner-cache/$FILE_NAME