File tree Expand file tree Collapse file tree
modules/runners/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# shellcheck shell=bash
22
3+ set -euo pipefail
4+
35# # install the runner (macOS)
46
5- s3_location=${S3_LOCATION_RUNNER_DISTRIBUTION}
6- architecture=${RUNNER_ARCHITECTURE}
7+ s3_location=${S3_LOCATION_RUNNER_DISTRIBUTION:- }
8+ architecture=${RUNNER_ARCHITECTURE:- }
9+ runner_tarball_url=${RUNNER_TARBALL_URL:- }
10+ user_name=${user_name:- ec2-user}
711
8- if [ -z " $RUNNER_TARBALL_URL " ] && [ -z " $s3_location " ]; then
12+ if [ -z " $runner_tarball_url " ] && [ -z " $s3_location " ]; then
913 echo " Neither RUNNER_TARBALL_URL or s3_location are set"
1014 exit 1
1115fi
@@ -19,9 +23,9 @@ echo "Creating actions-runner directory for the GH Action installation"
1923sudo mkdir -p /opt/actions-runner
2024cd /opt/actions-runner || exit 1
2125
22- if [[ -n " $RUNNER_TARBALL_URL " ]]; then
23- echo " Downloading the GH Action runner from $RUNNER_TARBALL_URL to $file_name "
24- curl -s -o " $file_name " -L " $RUNNER_TARBALL_URL "
26+ if [[ -n " $runner_tarball_url " ]]; then
27+ echo " Downloading the GH Action runner from $runner_tarball_url to $file_name "
28+ curl -s -o " $file_name " -L " $runner_tarball_url "
2529else
2630 echo " Retrieving REGION from AWS API"
2731 token=" $( curl -s -f -X PUT " http://169.254.169.254/latest/api/token" \
You can’t perform that action at this time.
0 commit comments