Commit 5f296772 by zqk

更新静态资源发布逻辑

parent de85a0bb
......@@ -34,5 +34,9 @@
# when: projects[project].sync2qiniu is defined
- 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 }}/"
when: projects[project].sync2qiniu is defined and branch=="master"
\ No newline at end of file
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" and projects[project].build="yes"
- 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 @@
repo: ssh://git@gitlab.yidianling.com:2224/yidianling_team/ydl.git
yidianlinghtmlsite:
dir: /var/www/ydlued/yidianlinghtmlsite
sync2qiniu: yes
repo: https://gitee.com/yidianlingteam/yidianlinghtmlsite.git
sync2qiniu: yes
build: no
xinfugongfang:
dir: /var/www/yidianling_new/m/xinfu/xinfugongfang
repo: ssh://git@gitlab.yidianling.com:2224/yidianling_static/xinfugongfang.git
......@@ -23,3 +24,5 @@
dir: /var/www/mvcstatic/bg-mobile
repo: ssh://git@gitlab.yidianling.com:2224/yidianling_static/bg-mobile.git
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