Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created August 31, 2021 21:05
Show Gist options
  • Save KyMidd/f919f6829479bed566c1ebca610dc9be to your computer and use it in GitHub Desktop.
Save KyMidd/f919f6829479bed566c1ebca610dc9be to your computer and use it in GitHub Desktop.
# GitHub Runner Installation - Install Latest
RUN mkdir /actions-runner && cd /actions-runner \
&& RUNNER_VERSION=$(curl --silent "https://api.github.com/repos/actions/runner/releases/latest" | grep tag_name | sed -E 's/.*"v([^"]+)".*/\1/') \
&& curl -LO https://github.com/actions/runner/releases/download/v${RUNNER_VERSION}/actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz \
&& tar xzf ./actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz \
# Install GitHub Runner dependencies
&& /actions-runner/bin/installdependencies.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment