From 55675574ba8d1505d0affae673647f4c84604ac7 Mon Sep 17 00:00:00 2001 From: Florian Rey Date: Tue, 16 May 2017 14:41:46 +0200 Subject: [PATCH] Follow newest capistrano git handlings --- manala.deploy/tasks/strategy/git.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/manala.deploy/tasks/strategy/git.yml b/manala.deploy/tasks/strategy/git.yml index 8046efa0b..2891136cb 100644 --- a/manala.deploy/tasks/strategy/git.yml +++ b/manala.deploy/tasks/strategy/git.yml @@ -1,17 +1,23 @@ --- -- name: strategy/git > Cached repository +- name: strategy/git > Update repository git: repo: "{{ manala_deploy_strategy_git_repo }}" - dest: "{{ deploy_helper.shared_path ~ '/cached-copy' }}" + dest: "{{ manala_deploy_dir ~ '/repo' }}" version: "{{ manala_deploy_strategy_git_version }}" accept_hostkey: true update: true + force: true + +- name: strategy/git > Create release folder + file: + state: directory + path: "{{ deploy_helper.new_release_path }}" - name: strategy/git > Get head - command: git rev-parse --short HEAD + shell: git archive --format=tar {{ manala_deploy_strategy_git_version }} | tar -x -f - -C "{{ deploy_helper.new_release_path }}" args: - chdir: "{{ deploy_helper.shared_path ~ '/cached-copy' }}" + chdir: "{{ manala_deploy_dir ~ '/repo' }}" register: __manala_deploy_strategy_git_head_result - name: strategy/git > Set head