aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'tasks')
-rw-r--r--tasks/deploy.yml14
1 files changed, 13 insertions, 1 deletions
diff --git a/tasks/deploy.yml b/tasks/deploy.yml
index 8b98d8c..54c04ac 100644
--- a/tasks/deploy.yml
+++ b/tasks/deploy.yml
@@ -24,7 +24,19 @@
24- name: Push to Clever-Cloud to trigger deployment 24- name: Push to Clever-Cloud to trigger deployment
25 command: "git push --force git+ssh://git@push-par-clevercloud-customers.services.clever-cloud.com/{{ clever_app }}.git HEAD:refs/heads/master" 25 command: "git push --force git+ssh://git@push-par-clevercloud-customers.services.clever-cloud.com/{{ clever_app }}.git HEAD:refs/heads/master"
26 26
27- name: Wait until deployment completion 27- name: Watch deployment status
28 command: clever-wait-deploy.sh 28 command: clever-wait-deploy.sh
29 async: 900
30 poll: 0
31 register: long_command
29 environment: 32 environment:
30 CONFIGURATION_FILE: "{{ clever_login_file }}" 33 CONFIGURATION_FILE: "{{ clever_login_file }}"
34
35# Waits up to 15 minutes
36- name: Wait for deployment completion
37 async_status:
38 jid: "{{ long_command.ansible_job_id }}"
39 register: job_result
40 until: job_result.finished
41 delay: 30
42 retries: 30