xoxys.droneci/templates/etc/systemd/system/drone.service.j2
Robert Kaussow d58e54dc2f
All checks were successful
continuous-integration/drone/push Build is passing
add variable for compose binary
2019-11-24 23:07:26 +01:00

20 lines
482 B
Django/Jinja

#jinja2:lstrip_blocks: True
{{ ansible_managed | comment }}
[Unit]
Description=Drone CI compose service
Requires=docker.service
After=docker.service
[Service]
Restart={{ droneci_restart_policy }}
WorkingDirectory={{ droneci_service_directory }}
ExecStartPre={{ droneci_docker_compose_bin }} down
ExecStartPre={{ droneci_docker_compose_bin }} rm -f
ExecStart={{ droneci_docker_compose_bin }} up
ExecStop={{ droneci_docker_compose_bin }} down
[Install]
WantedBy=multi-user.target