diff options
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/deploy.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tasks/deploy.yml b/tasks/deploy.yml index 400a79d..ca8bf15 100644 --- a/tasks/deploy.yml +++ b/tasks/deploy.yml | |||
@@ -26,6 +26,8 @@ | |||
26 | 26 | ||
27 | - name: Push to Clever-Cloud to trigger deployment | 27 | - name: Push to Clever-Cloud to trigger deployment |
28 | command: "git push --force git+ssh://git@push-par-clevercloud-customers.services.clever-cloud.com/{{ clever_app }}.git HEAD:refs/heads/master" | 28 | command: "git push --force git+ssh://git@push-par-clevercloud-customers.services.clever-cloud.com/{{ clever_app }}.git HEAD:refs/heads/master" |
29 | args: | ||
30 | chdir: "{{ clever_app_root }}" | ||
29 | register: clever_git_push | 31 | register: clever_git_push |
30 | ignore_errors: true | 32 | ignore_errors: true |
31 | tags: | 33 | tags: |
@@ -33,6 +35,8 @@ | |||
33 | 35 | ||
34 | - name: First time push to Clever-Cloud needs a full git clone | 36 | - name: First time push to Clever-Cloud needs a full git clone |
35 | command: "git fetch --unshallow" | 37 | command: "git fetch --unshallow" |
38 | args: | ||
39 | chdir: "{{ clever_app_root }}" | ||
36 | when: | 40 | when: |
37 | - clever_git_push is failed | 41 | - clever_git_push is failed |
38 | - clever_git_push.stderr is search("shallow update not allowed") | 42 | - clever_git_push.stderr is search("shallow update not allowed") |
@@ -41,6 +45,8 @@ | |||
41 | 45 | ||
42 | - name: Push to Clever-Cloud to trigger deployment | 46 | - name: Push to Clever-Cloud to trigger deployment |
43 | command: "git push --force git+ssh://git@push-par-clevercloud-customers.services.clever-cloud.com/{{ clever_app }}.git HEAD:refs/heads/master" | 47 | command: "git push --force git+ssh://git@push-par-clevercloud-customers.services.clever-cloud.com/{{ clever_app }}.git HEAD:refs/heads/master" |
48 | args: | ||
49 | chdir: "{{ clever_app_root }}" | ||
44 | when: clever_git_push is failed | 50 | when: clever_git_push is failed |
45 | tags: | 51 | tags: |
46 | - skip_ansible_lint | 52 | - skip_ansible_lint |