Skip to content

Commit 34e7c97

Browse files
martinpittallisonkarlitskaya
authored andcommitted
tasks: Reinstate $HOME for OpenShift task runner
Commit 6ac8ab6 dropped setting `$HOME` from the cockpit-tasks main loop script. But the task runner still needs it to write to the GitHub cache. It previously tried to write into `/.cache`, which got an EPERM. As a bonus, this now also sets a correct $HOME with `oc rsh` or the web UI terminal.
1 parent 6f813b7 commit 34e7c97

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tasks/cockpit-tasks-centosci.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ spec:
1818
- name: cockpit-tasks
1919
image: quay.io/cockpit/tasks
2020
env:
21+
# containers run as random user ID without passwd entry
22+
- name: HOME
23+
value: /work
2124
- name: RUN_STATISTICS_QUEUE
2225
value: '1'
2326
- name: COCKPIT_GITHUB_TOKEN_FILE

0 commit comments

Comments
 (0)