Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0c72234127 |
3 changed files with 39 additions and 6 deletions
|
|
@ -87,8 +87,19 @@ spec:
|
||||||
- |
|
- |
|
||||||
set -e
|
set -e
|
||||||
chown 1000:1000 /data
|
chown 1000:1000 /data
|
||||||
[ -f /data/runner.ini ] && chown 1000:1000 /data/runner.ini
|
# Re-own every entry the runner writes as uid 1000 — runner.ini,
|
||||||
[ -d /data/cache ] && chown -R 1000:1000 /data/cache
|
# cache/ and the actions cache .cache/act/ where it clones the
|
||||||
|
# action repos (a stale root-owned pack file there fails the job
|
||||||
|
# with "permission denied"). Skip `docker`, the dind data-root,
|
||||||
|
# which stays root-owned: a recursive chown of that tree is tens
|
||||||
|
# of GB on the Pi. The owner check makes repeat starts cheap.
|
||||||
|
for d in /data/* /data/.[!.]*; do
|
||||||
|
if [ ! -e "$d" ]; then continue; fi
|
||||||
|
if [ "$d" = /data/docker ]; then continue; fi
|
||||||
|
if [ "$(stat -c %u "$d")" != 1000 ]; then
|
||||||
|
chown -R 1000:1000 "$d"
|
||||||
|
fi
|
||||||
|
done
|
||||||
true
|
true
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
|
|
|
||||||
|
|
@ -53,8 +53,19 @@ spec:
|
||||||
- |
|
- |
|
||||||
set -e
|
set -e
|
||||||
chown 1000:1000 /data
|
chown 1000:1000 /data
|
||||||
[ -f /data/runner.ini ] && chown 1000:1000 /data/runner.ini
|
# Re-own every entry the runner writes as uid 1000 — runner.ini,
|
||||||
[ -d /data/cache ] && chown -R 1000:1000 /data/cache
|
# cache/ and the actions cache .cache/act/ where it clones the
|
||||||
|
# action repos (a stale root-owned pack file there fails the job
|
||||||
|
# with "permission denied"). Skip `docker`, the dind data-root,
|
||||||
|
# which stays root-owned: a recursive chown of that tree is tens
|
||||||
|
# of GB on the Pi. The owner check makes repeat starts cheap.
|
||||||
|
for d in /data/* /data/.[!.]*; do
|
||||||
|
if [ ! -e "$d" ]; then continue; fi
|
||||||
|
if [ "$d" = /data/docker ]; then continue; fi
|
||||||
|
if [ "$(stat -c %u "$d")" != 1000 ]; then
|
||||||
|
chown -R 1000:1000 "$d"
|
||||||
|
fi
|
||||||
|
done
|
||||||
true
|
true
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
|
|
|
||||||
|
|
@ -92,8 +92,19 @@ spec:
|
||||||
- |
|
- |
|
||||||
set -e
|
set -e
|
||||||
chown 1000:1000 /data
|
chown 1000:1000 /data
|
||||||
[ -f /data/runner.ini ] && chown 1000:1000 /data/runner.ini
|
# Re-own every entry the runner writes as uid 1000 — runner.ini,
|
||||||
[ -d /data/cache ] && chown -R 1000:1000 /data/cache
|
# cache/ and the actions cache .cache/act/ where it clones the
|
||||||
|
# action repos (a stale root-owned pack file there fails the job
|
||||||
|
# with "permission denied"). Skip `docker`, the dind data-root,
|
||||||
|
# which stays root-owned: a recursive chown of that tree is tens
|
||||||
|
# of GB on the Pi. The owner check makes repeat starts cheap.
|
||||||
|
for d in /data/* /data/.[!.]*; do
|
||||||
|
if [ ! -e "$d" ]; then continue; fi
|
||||||
|
if [ "$d" = /data/docker ]; then continue; fi
|
||||||
|
if [ "$(stat -c %u "$d")" != 1000 ]; then
|
||||||
|
chown -R 1000:1000 "$d"
|
||||||
|
fi
|
||||||
|
done
|
||||||
true
|
true
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue