Git runner

# Create a directory for systemd overrides
mkdir /etc/systemd/system/gitlab-runner.service.d

# Create a file with the new configuration
echo -e "[Service]\nExecStart=\nExecStart=/usr/lib/gitlab-runner/gitlab-runner \"run\" \"--working-directory\" \"/home/ubuntu\" \"--config\" \"/etc/gitlab-runner/config.toml\" \"--service\" \"gitlab-runner\" \"--syslog\" \"--user\" \"ubuntu\"" > /etc/systemd/system/gitlab-runner.service.d/exec_start.conf

# Reload the systemd daemon
systemctl daemon-reload
# Reinstall GitLab Runner package
gitlab-runner uninstall
gitlab-runner install

Comments

Popular posts from this blog

Ansible

YUI Compressed Polyfill Min JS

Common Lines Finder Java