Commit 4a23a2bd by 刘旋尧

hook

parent 195cda2a
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
- name: 先拉取代码 - name: 先拉取代码
git: repo={{ projects[project].repo }} dest={{ projects[project].dir }} accept_hostkey=yes clone=yes update=yes force=yes git: repo={{ projects[project].repo }} dest={{ projects[project].dir }} accept_hostkey=yes clone=yes update=yes force=yes
- name: 更新dev
command: "git pull origin dev"
args:
chdir: "{{ projects[project].dir }}"
when: type == "test"
- name: 切换到master - name: 切换到master
command: "git checkout master" command: "git checkout master"
args: args:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment