diff --git a/runner_scripts/root/run.sh b/runner_scripts/root/run.sh index a88e6ee615117ae7c320f9927a78b5945f10837b..06a1e7230f4e29e8585b61b3fd2705f689eaf0e5 100755 --- a/runner_scripts/root/run.sh +++ b/runner_scripts/root/run.sh @@ -38,7 +38,7 @@ id -u "$AUTH_USER" >/dev/null 2>&1 || error "User $AUTH_USER does not exist" ## Use a key pair to authenticate the user (private key has to be set as a GitLab CI/CD variable) AUTH_KEY=$CUSTOM_ENV_AUTH_KEY -AUTH_PUB=$AUTH_USER_HOME/gitlab-runner/authorized_keys +AUTH_PUB=/etc/gitlab-runner/authorized_keys ( while read -r PUB