mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-24 18:50:58 +08:00
Enable build runner workflow
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
FROM ubuntu:18.04
|
||||
|
||||
ARG RUNNER_VERSION
|
||||
ARG DOCKER_VERSION
|
||||
|
||||
RUN apt update \
|
||||
&& apt install curl ca-certificates -y --no-install-recommends \
|
||||
&& curl -L -o docker.tgz https://download.docker.com/linux/static/stable/x86_64/docker-19.03.5.tgz \
|
||||
&& curl -L -o docker.tgz https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz \
|
||||
&& tar zxvf docker.tgz \
|
||||
&& install -o root -g root -m 755 docker/docker /usr/local/bin/docker \
|
||||
&& rm -rf docker docker.tgz \
|
||||
@@ -10,9 +13,9 @@ RUN apt update \
|
||||
|
||||
RUN mkdir -p /runner \
|
||||
&& cd /runner \
|
||||
&& curl -O -L https://github.com/actions/runner/releases/download/v2.165.0/actions-runner-linux-x64-2.165.0.tar.gz \
|
||||
&& tar xzf ./actions-runner-linux-x64-2.165.0.tar.gz \
|
||||
&& rm actions-runner-linux-x64-2.165.0.tar.gz \
|
||||
&& curl -L -o runner.tar.gz https://github.com/actions/runner/releases/download/v${RUNNER_VERSION}/actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz \
|
||||
&& tar xzf ./runner.tar.gz \
|
||||
&& rm runner.tar.gz \
|
||||
&& ./bin/installdependencies.sh
|
||||
|
||||
COPY entrypoint.sh /runner
|
||||
|
||||
Reference in New Issue
Block a user