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
113e5f31
Commit
113e5f31
authored
Jun 12, 2018
by
刘旋尧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bgapi
parent
2afa8230
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
main.yml
roles/git/tasks/main.yml
+5
-4
main.yml
vars/main.yml
+3
-0
No files found.
roles/git/tasks/main.yml
View file @
113e5f31
...
@@ -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
vars/main.yml
View file @
113e5f31
...
@@ -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
...
...
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