diff options
-rw-r--r-- | tasks/deploy.yml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tasks/deploy.yml b/tasks/deploy.yml index b6b6358..76da5d7 100644 --- a/tasks/deploy.yml +++ b/tasks/deploy.yml | |||
@@ -41,17 +41,21 @@ | |||
41 | chdir: "{{ clever_app_root }}" | 41 | chdir: "{{ clever_app_root }}" |
42 | when: | 42 | when: |
43 | - clever_deploy is failed | 43 | - clever_deploy is failed |
44 | - clever_deploy.stderr is defined | ||
44 | - clever_deploy.stderr is search("Failed to read git object") | 45 | - clever_deploy.stderr is search("Failed to read git object") |
45 | tags: | 46 | tags: |
46 | - skip_ansible_lint | 47 | - skip_ansible_lint |
47 | 48 | ||
48 | - name: Deploy to Clever-Cloud | 49 | - name: Deploy to Clever-Cloud (after first time push failed) |
49 | shell: "clever deploy --force" | 50 | shell: "clever deploy --force" |
50 | args: | 51 | args: |
51 | chdir: "{{ clever_app_root }}" | 52 | chdir: "{{ clever_app_root }}" |
52 | environment: | 53 | environment: |
53 | CONFIGURATION_FILE: "{{ clever_login_file }}" | 54 | CONFIGURATION_FILE: "{{ clever_login_file }}" |
54 | when: clever_deploy is failed | 55 | when: |
56 | - clever_deploy is failed | ||
57 | - clever_deploy.stderr is defined | ||
58 | - clever_deploy.stderr is search("Failed to read git object") | ||
55 | register: clever_deploy | 59 | register: clever_deploy |
56 | ignore_errors: true | 60 | ignore_errors: true |
57 | tags: | 61 | tags: |