Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible-hook
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘旋尧
ansible-hook
Commits
5f296772
Commit
5f296772
authored
Aug 04, 2018
by
zqk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新静态资源发布逻辑
parent
de85a0bb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
main.yml
roles/git/tasks/main.yml
+6
-3
main.yml
vars/main.yml
+4
-1
No files found.
roles/git/tasks/main.yml
View file @
5f296772
...
@@ -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"
vars/main.yml
View file @
5f296772
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment