This repository was archived by the owner on Feb 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -53,12 +53,12 @@ If you are using `docker` or `podman` the options and commands are basically the
53
53
54
54
Run registerd to an Organisation:
55
55
``` bash
56
- docker run -e GH_ORG=fullstack-devops -e GH_ACCESS_TOKEN=ghp_**** github-actions-runner:latest
56
+ docker run -e GH_ORG=fullstack-devops -e GH_ACCESS_TOKEN=ghp_**** ghcr.io/fullstack-devops/ github-actions-runner:latest-base
57
57
```
58
58
59
59
Run registerd to an Organisation and Repo:
60
60
``` bash
61
- docker run -e GH_ORG=fullstack-devops -e GH_REPO=github-runner-testing -e GH_ACCESS_TOKEN=ghp_**** github-actions-runner:latest
61
+ docker run -e GH_ORG=fullstack-devops -e GH_REPO=github-runner-testing -e GH_ACCESS_TOKEN=ghp_**** ghcr.io/fullstack-devops/ github-actions-runner:latest-base
62
62
```
63
63
64
64
> Replace the ` ghp_**** ` with your own valid personal access token
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ ARG DEBIAN_FRONTEND=noninteractive
5
5
ARG PACKAGES="libffi-dev libicu-dev build-essential libssl-dev ca-certificates software-properties-common jq sed grep git curl wget zip python3-pip"
6
6
7
7
ENV USERNAME="runner"
8
+ ENV USERID=1000
8
9
ENV UBUNTU_VERSION=20.04
9
10
ENV RUNNER_HOME="/home/${USERNAME}/runner"
10
11
@@ -45,7 +46,7 @@ RUN export ARCH=$(/helper-scripts/translate-aarch.sh a-short) \
45
46
WORKDIR /home/${USERNAME}/runner
46
47
47
48
# add a non-sudo user
48
- RUN useradd -m $USERNAME \
49
+ RUN useradd -m -u $USERID $USERNAME \
49
50
&& usermod -aG sudo $USERNAME \
50
51
&& chown -R $USERNAME $GH_RUNNER_WORKDIR \
51
52
&& chown -R $USERNAME $GH_KANIKO_WORKDIR \
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ cleanup() {
65
65
echo " Removing runner..."
66
66
if [ ! -z " $RUNNER_TOKEN " ]; then
67
67
readonly REG_TOKEN=$RUNNER_TOKEN
68
- else [ ! -z $GH_ACCESS_TOKEN ]; then
68
+ elif [ ! -z $GH_ACCESS_TOKEN ]; then
69
69
readonly REG_TOKEN=$( curl -s -X POST -H " Accept: application/vnd.github.v3+json" -H " Authorization: token $GH_ACCESS_TOKEN " $RUNNER_REG_TOKEN_URL | jq .token --raw-output)
70
70
fi
71
71
${RUNNER_HOME} /config.sh remove --token ${REG_TOKEN}
Original file line number Diff line number Diff line change 1
- FROM gcr.io/kaniko-project/executor:v1.8.0 -debug
1
+ FROM gcr.io/kaniko-project/executor:v1.8.1 -debug
2
2
3
3
COPY kaniko-entrypoint.sh /kaniko/kaniko-entrypoint.sh
4
4
WORKDIR /
You can’t perform that action at this time.
0 commit comments