mirror of
https://github.com/actions/runner.git
synced 2026-01-11 04:50:50 +08:00
* Workflow * add back github-token to id:image * added handle to image name * removed core require * multi line added :latest * added label * added repository_owner in IMAGE_NAME * with the release * release * markdown label description * Remove markdown desciprion * Remove double quotes in labels * Reverted back releaseVersion
22 lines
848 B
Docker
22 lines
848 B
Docker
FROM mcr.microsoft.com/dotnet/runtime-deps:6.0 as build
|
|
|
|
ARG RUNNER_VERSION
|
|
ARG RUNNER_ARCH="x64"
|
|
ARG RUNNER_CONTAINER_HOOKS_VERSION=0.1.3
|
|
|
|
RUN apt update -y && apt install curl unzip -y
|
|
|
|
WORKDIR /actions-runner
|
|
RUN curl -f -L -o runner.tar.gz https://github.com/actions/runner/releases/download/v${RUNNER_VERSION}/actions-runner-linux-${RUNNER_ARCH}-${RUNNER_VERSION}.tar.gz \
|
|
&& tar xzf ./runner.tar.gz \
|
|
&& rm runner.tar.gz
|
|
|
|
RUN curl -f -L -o runner-container-hooks.zip https://github.com/actions/runner-container-hooks/releases/download/v${RUNNER_CONTAINER_HOOKS_VERSION}/actions-runner-hooks-k8s-${RUNNER_CONTAINER_HOOKS_VERSION}.zip \
|
|
&& unzip ./runner-container-hooks.zip -d ./k8s \
|
|
&& rm runner-container-hooks.zip
|
|
|
|
FROM mcr.microsoft.com/dotnet/runtime-deps:6.0
|
|
|
|
WORKDIR /actions-runner
|
|
COPY --from=build /actions-runner .
|