Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
joohanhong
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
JooHan Hong
joohanhong
Commits
51b97a9a
Commit
51b97a9a
authored
Mar 03, 2021
by
JooHan Hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
프로젝트 분산백업적용
parent
18db5982
Pipeline
#5067
passed with stages
in 3 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
0 deletions
+54
-0
.gitlab-ci.yml
.gitlab-ci.yml
+49
-0
git_uptodate.sh
git_uptodate.sh
+5
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
51b97a9a
stages
:
-
deploy
-
backup
variables
:
GIT_STRATEGY
:
clone
GIT_SSL_NO_VERIFY
:
"
1"
TARGET_TB2_DIR
:
/var/lib/libvirt/GIT/joohanhong/UPLOAD
TARGET_TB3_DIR
:
/GIT/joohanhong/UPLOAD
TARGET_BACKUP_DIR
:
/GIT/joohanhong
#before_script:
# - (if [[ ! -d ${TARGET_TB2_DIR} ]]; then mkdir -p ${TARGET_TB2_DIR}; fi);
# - (if [[ ! -d ${TARGET_TB3_DIR} ]]; then mkdir -p ${TARGET_TB3_DIR}; fi);
# - (if [[ ! -d ${TARGET_TB3_SUB_DIR} ]]; then mkdir -p ${TARGET_TB3_SUB_DIR}; fi);
# - (if [[ ! -d ${TARGET_STORAGE_DIR} ]]; then mkdir -p ${TARGET_STORAGE_DIR}; fi);
tb2
:
stage
:
deploy
only
:
-
master
before_script
:
-
(if [[ ! -d ${TARGET_TB2_DIR} ]]; then mkdir -p ${TARGET_TB2_DIR}; fi);
script
:
-
rsync -ar --delete ${CI_PROJECT_DIR}/* ${TARGET_TB2_DIR}/
tags
:
-
tb2
tb3
:
stage
:
deploy
only
:
-
master
before_script
:
-
(if [[ ! -d ${TARGET_TB3_DIR} ]]; then mkdir -p ${TARGET_TB3_DIR}; fi);
script
:
-
rsync -ar --delete ${CI_PROJECT_DIR}/* ${TARGET_TB3_DIR}/
tags
:
-
tb3
backup
:
stage
:
backup
only
:
-
master
before_script
:
-
(if [[ ! -d ${TARGET_BACKUP_DIR} ]]; then mkdir -p ${TARGET_BACKUP_DIR}; fi);
script
:
-
rsync -ar --delete ${CI_PROJECT_DIR}/* ${TARGET_BACKUP_DIR}/
tags
:
-
backup
git_uptodate.sh
0 → 100755
View file @
51b97a9a
#!/bin/bash
git fetch upstream
git pull
#git merge upstream/master
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