This repository was archived by the owner on Feb 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +28
-4
lines changed Expand file tree Collapse file tree 7 files changed +28
-4
lines changed Original file line number Diff line number Diff line change
1
+ .env
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ volumes:
73
73
74
74
services :
75
75
github-action-runner :
76
- image : github-action -runner:base-latest
76
+ image : ghcr.io/fullstack-devops/ github-actions -runner:base-latest
77
77
environment :
78
78
GH_ORG : fullstack-devops
79
79
GH_ACCESS_TOKEN : ghp_****
@@ -82,7 +82,7 @@ services:
82
82
- kaniko_workspace:/kaniko/workspace
83
83
84
84
github-action-runner-kaniko :
85
- image : github-action -runner:kaniko-sidecar-latest
85
+ image : ghcr.io/fullstack-devops/ github-actions -runner:kaniko-sidecar-latest
86
86
volumes :
87
87
- kaniko_workspace:/kaniko/workspace
88
88
` ` `
Original file line number Diff line number Diff line change
1
+ export GH_ACCESS_TOKEN=""
Original file line number Diff line number Diff line change
1
+ version : " 3"
2
+
3
+ volumes :
4
+ kaniko_workspace :
5
+ driver : local
6
+
7
+ services :
8
+ github-action-runner :
9
+ image : ghcr.io/fullstack-devops/github-actions-runner:base-latest
10
+ environment :
11
+ GH_ORG : fullstack-devops
12
+ KANIKO_ENABLED : " true"
13
+ GH_ACCESS_TOKEN : ${GH_ACCESS_TOKEN}
14
+ volumes :
15
+ - kaniko_workspace:/kaniko/workspace
16
+
17
+ github-action-runner-kaniko :
18
+ image : ghcr.io/fullstack-devops/github-actions-runner:kaniko-sidecar-latest
19
+ volumes :
20
+ - kaniko_workspace:/kaniko/workspace
Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ WORKDIR /home/${USERNAME}/runner
45
45
# add a non-sudo user
46
46
RUN useradd -m $USERNAME \
47
47
&& usermod -aG sudo $USERNAME \
48
- && chown -R $USERNAME /home/${USERNAME} \
48
+ && chown -R $USERNAME $GH_RUNNER_WORKDIR \
49
+ && chown -R $USERNAME $GH_KANIKO_WORKDIR \
49
50
&& mkdir -p ${RUNNER_HOME}
50
51
51
52
# Install github runner
Original file line number Diff line number Diff line change 43
43
if [ " $KANIKO_ENABLED " == " true" ]; then
44
44
readonly GH_WORKDIR=$GH_KANIKO_WORKDIR
45
45
echo " Build container via Kaniko: enabled"
46
+ GH_RUNNER_LABELS=" ${GH_RUNNER_LABELS} ,kaniko"
46
47
else
47
48
readonly GH_WORKDIR=$GH_RUNNER_WORKDIR
48
49
echo " Build container via Kaniko: disabled"
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ if [ -p $returnpipe ]; then
12
12
echo " Warning: removed stale communication returncode file with kaniko"
13
13
fi
14
14
echo " cd ${PWD} " > /kaniko/workspace/start.sh
15
- echo " /kaniko/executor --cleanup $@ " >> /kaniko/workspace/start.sh
15
+ echo " /kaniko/executor --cleanup --force $@ " >> /kaniko/workspace/start.sh
16
16
mkfifo $returnpipe
17
17
mkfifo $logpipe
18
18
cat $logpipe
You can’t perform that action at this time.
0 commit comments