add variable for compose binary
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8e7afe4015
commit
d58e54dc2f
@ -58,3 +58,5 @@ droneci_gitea_skip_verify: False
|
||||
|
||||
# @var droneci_no_proxy: $ ["drone-server", "drone-agent"]
|
||||
droneci_no_proxy: []
|
||||
|
||||
droneci_docker_compose_bin: /usr/local/bin/docker-compose
|
||||
|
@ -17,6 +17,7 @@
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
validate: "{{ droneci_docker_compose_bin }} -f %s config -q"
|
||||
notify: __drone_restart
|
||||
|
||||
- name: Create systemd unit files
|
||||
|
@ -9,11 +9,11 @@ After=docker.service
|
||||
Restart={{ droneci_restart_policy }}
|
||||
WorkingDirectory={{ droneci_service_directory }}
|
||||
|
||||
ExecStartPre=/usr/local/bin/docker-compose down
|
||||
ExecStartPre=/usr/local/bin/docker-compose rm -f
|
||||
ExecStartPre={{ droneci_docker_compose_bin }} down
|
||||
ExecStartPre={{ droneci_docker_compose_bin }} rm -f
|
||||
|
||||
ExecStart=/usr/local/bin/docker-compose up
|
||||
ExecStop=/usr/local/bin/docker-compose down
|
||||
ExecStart={{ droneci_docker_compose_bin }} up
|
||||
ExecStop={{ droneci_docker_compose_bin }} down
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
Reference in New Issue
Block a user