Commit b473a5fa by zqk

添加七牛同步

parent c8db25ee
...@@ -22,17 +22,17 @@ ...@@ -22,17 +22,17 @@
chdir: "{{ projects[project].dir }}" chdir: "{{ projects[project].dir }}"
- name: get-special-commit-modified-files # - 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: generate-url-list # - 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: sync-to-qiniu - name: sync-to-qiniu
command: "qshell cdnrefresh ~/cdnurls" command: "qshell qupload2 -src-dir={{ projects[project].dir }}/build -bucket=mvcstatic-ydlcdn-com -key-prefix={{ project }}/"
when: projects[project].sync2qiniu is defined when: projects[project].sync2qiniu is defined
\ No newline at end of file
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
xinfugongfang: xinfugongfang:
dir: /var/www/yidianling_new/m/xinfu/xinfugongfang dir: /var/www/yidianling_new/m/xinfu/xinfugongfang
repo: ssh://git@gitlab.yidianling.com:2224/yidianling_static/xinfugongfang.git repo: ssh://git@gitlab.yidianling.com:2224/yidianling_static/xinfugongfang.git
sync2qiniu: yes
bg-mobile: bg-mobile:
dir: /var/www/mvcstatic/bg-mobile dir: /var/www/mvcstatic/bg-mobile
repo: ssh://git@gitlab.yidianling.com:2224/yidianling_static/bg-mobile.git repo: ssh://git@gitlab.yidianling.com:2224/yidianling_static/bg-mobile.git
sync2qiniu: yes
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