Bump to 2.164.0

This commit is contained in:
Proton
2020-01-17 16:10:03 +08:00
parent 31990438bf
commit 4341b940d1
4 changed files with 23 additions and 10 deletions
+6 -4
View File
@@ -1,9 +1,8 @@
FROM ubuntu:rolling
LABEL maintainer="[email protected]"
ARG GH_RUNNER_VERSION="2.163.1"
ARG GIT_VERSION="2.23.0"
ENV GH_RUNNER_VERSION=$GH_RUNNER_VERSION
ENV DEBIAN_FRONTEND=noninteractive
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# hadolint ignore=DL3003
@@ -43,9 +42,12 @@ RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
WORKDIR /actions-runner
COPY install_actions.sh /actions-runner
# Put version here to prevent cache invalidation
ENV GH_RUNNER_VERSION="2.164.0"
RUN chmod +x /actions-runner/install_actions.sh \
&& /actions-runner/install_actions.sh \
rm /actions-runner/install_actions.sh
&& /actions-runner/install_actions.sh ${GH_RUNNER_VERSION} \
&& rm /actions-runner/install_actions.sh
WORKDIR /_work
COPY entrypoint.sh /
+1 -1
View File
@@ -1,5 +1,5 @@
#!/bin/bash
export AGENT_ALLOW_RUNASROOT=1
export RUNNER_ALLOW_RUNASROOT=1
export PATH=$PATH:/actions-runner
_RUNNER_NAME=${RUNNER_NAME:-default}
_RUNNER_WORKDIR=${RUNNER_WORKDIR:-/_work}
+6 -5
View File
@@ -1,13 +1,14 @@
#!/bin/bash
export GH_RUNNER_VERSION
#!/bin/bash -x
GH_RUNNER_VERSION=$1
export ACTIONS_ARCH="x64"
if [[ $(dpkg --print-architecture) == "armhf" ]]; then
export ACTIONS_ARCH="arm"
elif [[ $(dpkg --print-architecture) == "arm64" ]]; then
export ACTIONS_ARCH="arm64"
fi
curl -O "https://githubassets.azureedge.net/runners/${GH_RUNNER_VERSION}/actions-runner-linux-x64-${GH_RUNNER_VERSION}.tar.gz"
tar -zxf "actions-runner-linux-x64-${GH_RUNNER_VERSION}.tar.gz"
rm -f "actions-runner-linux-x64-${GH_RUNNER_VERSION}.tar.gz"
curl -L "https://github.com/actions/runner/releases/download/v${GH_RUNNER_VERSION}/actions-runner-linux-x64-${GH_RUNNER_VERSION}.tar.gz" > actions.tar.gz
tar -zxf actions.tar.gz
rm -f actions.tar.gz
./bin/installdependencies.sh
mkdir /_work
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
function run-server {
name=github-actions-$(echo $1 | sed 's/\//-/g')
docker rm -f $name
docker run -d --restart=always -e REPO_URL="https://github.com/$1" -e RUNNER_TOKEN="$2" -v /var/run/docker.sock:/var/run/docker.sock --name $name github-runner:latest
}
run-server your-account/your-repo AARGHTHISISYOURGHACTIONSTOKEN
run-server your-account/some-other-repo ARGHANOTHERGITHUBACTIONSTOKEN