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
b473a5fa
Commit
b473a5fa
authored
Jul 25, 2018
by
zqk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加七牛同步
parent
c8db25ee
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
11 deletions
+14
-11
main.yml
roles/git/tasks/main.yml
+12
-11
main.yml
vars/main.yml
+2
-0
No files found.
roles/git/tasks/main.yml
View file @
b473a5fa
...
@@ -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
vars/main.yml
View file @
b473a5fa
...
@@ -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
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