Commit 5f296772 by zqk

更新静态资源发布逻辑

parent de85a0bb
...@@ -34,5 +34,9 @@ ...@@ -34,5 +34,9 @@
# when: projects[project].sync2qiniu is defined # when: projects[project].sync2qiniu is defined
- name: sync-to-qiniu - name: sync-to-qiniu
command: "qshell qupload2 -thread-count=10 -rescan-local=true -src-dir={{ projects[project].dir }}/build -bucket=mvcstatic-ydlcdn-com -key-prefix={{ project }}/" command: "qshell qupload2 -thread-count=10 -rescan-local=true -src-dir={{ projects[project].dir }}/build -bucket={{ projects[project].bucket }} -key-prefix={{ project }}/"
when: projects[project].sync2qiniu is defined and branch=="master" when: projects[project].sync2qiniu is defined and branch=="master" and projects[project].build="yes"
\ No newline at end of file
- name: sync-to-qiniu
command: "qshell qupload2 -thread-count=10 -rescan-local=true -src-dir={{ projects[project].dir }} -bucket={{ projects[project].bucket }} -key-prefix={{ project }}/"
when: projects[project].sync2qiniu is defined and branch=="master" and projects[project].build=="no"
...@@ -14,8 +14,9 @@ ...@@ -14,8 +14,9 @@
repo: ssh://git@gitlab.yidianling.com:2224/yidianling_team/ydl.git repo: ssh://git@gitlab.yidianling.com:2224/yidianling_team/ydl.git
yidianlinghtmlsite: yidianlinghtmlsite:
dir: /var/www/ydlued/yidianlinghtmlsite dir: /var/www/ydlued/yidianlinghtmlsite
sync2qiniu: yes
repo: https://gitee.com/yidianlingteam/yidianlinghtmlsite.git repo: https://gitee.com/yidianlingteam/yidianlinghtmlsite.git
sync2qiniu: yes
build: no
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
...@@ -23,3 +24,5 @@ ...@@ -23,3 +24,5 @@
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 sync2qiniu: yes
bucket: mvcsatic-ydlcdn-com
build: 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