Fixes gitlab-runner user not owning gitlab-runner exec
This is a hotfix for an issue that arose using Rocky 9 image for this module in a project.
Yet, this issue is not specific to that OS it would appear.
Mainly, the gitlab-runner
doesn't own the /usr/bin/local/gitlab-runner
executable but instead it is still owned by root
.
Example:
[cloud@espd-blue-gitlab-ci-runner-1 ~]$ ls -lath /usr/local/bin/gitlab-runner
-rwx------. 1 root root 89M Oct 15 13:25 /usr/local/bin/gitlab-runner
This caused issues in pipelines with the following error:
Missing /usr/local/bin/gitlab-runner. Artifacts downloading is disabled.
Artifact upload / download were both broken due to this issue.
The fix in this MR:
- Run a
chown
so we swap ownership togitlab-runner
for that executable; still needs to be tested but fairly confident we can cut a release and then I'll try it out immediately on ESPD project.