mirror of
https://github.com/actions/runner-images.git
synced 2026-01-08 11:30:49 +08:00
[ubuntu] Rename build scripts (#8866)
* [ubuntu] Rename build scripts * [ubuntu] Change reboot to inline shell * [ubuntu] Move disk space validation to pester tests * [ubuntu] Rename helper and tests files * [ubuntu] Changes to cleanup, post-deployment and r scripts
This commit is contained in:
committed by
GitHub
parent
410fd620be
commit
1bd9214f41
18
images/ubuntu/scripts/build/install-runner-package.sh
Normal file
18
images/ubuntu/scripts/build/install-runner-package.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash -e
|
||||
################################################################################
|
||||
## 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
|
||||
Reference in New Issue
Block a user