[libvirt-jenkins-ci PATCH 1/5] guests: templates: Introduce a gitlab-runner systemd service template

Erik Skultety eskultet at redhat.com
Thu Mar 26 13:33:50 UTC 2020


Signed-off-by: Erik Skultety <eskultet at redhat.com>
---
 .../update/templates/gitlab-runner.service.j2        | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 guests/playbooks/update/templates/gitlab-runner.service.j2

diff --git a/guests/playbooks/update/templates/gitlab-runner.service.j2 b/guests/playbooks/update/templates/gitlab-runner.service.j2
new file mode 100644
index 0000000..f7a70dc
--- /dev/null
+++ b/guests/playbooks/update/templates/gitlab-runner.service.j2
@@ -0,0 +1,12 @@
+[Unit]
+Description=GitLab Runner
+After=network.target
+ConditionFileIsExecutable=/usr/local/bin/gitlab-runner
+
+[Service]
+ExecStart=/usr/local/bin/gitlab-runner run --user gitlab --working-directory /home/gitlab --config /home/gitlab/.gitlab-runner/config.toml
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
+
-- 
2.25.1




More information about the libvir-list mailing list