Commit 113e5f31 by 刘旋尧

bgapi

parent 2afa8230
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
when: type == "pre" when: type == "pre"
- name: pull-pre - name: checkout-pre
command: "git checkout {{ branch }}" command: "git checkout {{ branch }}"
args: args:
chdir: "{{ projects[project].dir }}" chdir: "{{ projects[project].dir }}"
...@@ -22,17 +22,17 @@ ...@@ -22,17 +22,17 @@
chdir: "{{ projects[project].dir }}" chdir: "{{ projects[project].dir }}"
- name: 获取指定版本更新的文件 - name: get-special-commit-modified-files
command: "git diff-tree --no-commit-id --name-only -r {{ commit }}" command: "git diff-tree --no-commit-id --name-only -r {{ commit }}"
args: args:
chdir: "{{ projects[project].dir }}" chdir: "{{ projects[project].dir }}"
register: files register: files
when: projects[project].sync2qiniu is defined when: projects[project].sync2qiniu is defined
- name: 生成需要刷新的cdn url列表 - name: generate-url-list
template: src=urls.j2 dest=~/cdnurls owner=root group=root mode=0644 template: src=urls.j2 dest=~/cdnurls owner=root group=root mode=0644
when: projects[project].sync2qiniu is defined when: projects[project].sync2qiniu is defined
- name: 同步到qiniu - name: sync-to-qiniu
command: "qshell cdnrefresh ~/cdnurls" command: "qshell cdnrefresh ~/cdnurls"
when: projects[project].sync2qiniu is defined when: projects[project].sync2qiniu is defined
\ No newline at end of file
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
yidianling_new: yidianling_new:
dir: /var/www/yidianling_new dir: /var/www/yidianling_new
repo: ssh://git@gitlab.yidianling.com:2224/yidianling_team/yidianling_new.git repo: ssh://git@gitlab.yidianling.com:2224/yidianling_team/yidianling_new.git
yidianling_bg:
dir: /var/www/yidianling_bg
repo: ssh://git@gitlab.yidianling.com:2224/yidianling_team/yidianling_bg.git
ydl: ydl:
dir: /var/www/ydl dir: /var/www/ydl
repo: ssh://git@gitlab.yidianling.com:2224/yidianling_team/ydl.git repo: ssh://git@gitlab.yidianling.com:2224/yidianling_team/ydl.git
......
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