mirror of
https://github.com/monlor/MIXBOX-ARCHIVE.git
synced 2026-03-10 23:41:27 +00:00
2020-03-06 13:55:38
This commit is contained in:
@@ -13,6 +13,7 @@ pack:branchs:
|
|||||||
- dev
|
- dev
|
||||||
script:
|
script:
|
||||||
- bash -e ./tools/gitsync.sh pack
|
- bash -e ./tools/gitsync.sh pack
|
||||||
|
retry: 2
|
||||||
cache:
|
cache:
|
||||||
key: ${CI_COMMIT_REF_NAME}
|
key: ${CI_COMMIT_REF_NAME}
|
||||||
untracked: true
|
untracked: true
|
||||||
@@ -24,10 +25,22 @@ deploy:branchs:
|
|||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
- test
|
- test
|
||||||
- dev
|
|
||||||
script:
|
script:
|
||||||
- bash ./tools/gitsync.sh deploy mbfiles ${CI_COMMIT_REF_NAME} ${GL_REF}/monlor/mbfiles.git
|
- bash ./tools/gitsync.sh deploy mbfiles ${CI_COMMIT_REF_NAME} ${GL_REF}/monlor/mbfiles.git
|
||||||
- bash ./tools/gitsync.sh deploy mbfiles ${CI_COMMIT_REF_NAME} ${CO_REF}/monlor/mbfiles.git
|
- bash ./tools/gitsync.sh deploy mbfiles ${CI_COMMIT_REF_NAME} ${CO_REF}/monlor/mbfiles.git
|
||||||
|
- bash ./tools/gitsync.sh deploy mbfiles ${CI_COMMIT_REF_NAME} ${GH_REF}/monlor/mbfiles.git
|
||||||
|
cache:
|
||||||
|
key: ${CI_COMMIT_REF_NAME}
|
||||||
|
untracked: true
|
||||||
|
paths:
|
||||||
|
- mbfiles/
|
||||||
|
|
||||||
|
deploy:dev:
|
||||||
|
stage: deploy
|
||||||
|
only:
|
||||||
|
- dev
|
||||||
|
script:
|
||||||
|
- bash ./tools/gitsync.sh deploy mbfiles ${CI_COMMIT_REF_NAME} ${GL_REF}/monlor/mbfiles.git
|
||||||
cache:
|
cache:
|
||||||
key: ${CI_COMMIT_REF_NAME}
|
key: ${CI_COMMIT_REF_NAME}
|
||||||
untracked: true
|
untracked: true
|
||||||
@@ -44,6 +57,7 @@ pack:master:
|
|||||||
- git fetch origin master
|
- git fetch origin master
|
||||||
- git checkout master
|
- git checkout master
|
||||||
- bash -e ./tools/gitsync.sh pack
|
- bash -e ./tools/gitsync.sh pack
|
||||||
|
retry: 2
|
||||||
# artifacts:
|
# artifacts:
|
||||||
# paths:
|
# paths:
|
||||||
# - mbfiles-msater/
|
# - mbfiles-msater/
|
||||||
@@ -63,6 +77,7 @@ pack:test:
|
|||||||
- git fetch origin test
|
- git fetch origin test
|
||||||
- git checkout test
|
- git checkout test
|
||||||
- bash -e ./tools/gitsync.sh pack
|
- bash -e ./tools/gitsync.sh pack
|
||||||
|
retry: 2
|
||||||
# artifacts:
|
# artifacts:
|
||||||
# paths:
|
# paths:
|
||||||
# - mbfiles-test/
|
# - mbfiles-test/
|
||||||
|
|||||||
@@ -120,6 +120,11 @@ deploy() {
|
|||||||
git init
|
git init
|
||||||
git config --local user.email "monlor@qq.com"
|
git config --local user.email "monlor@qq.com"
|
||||||
git config --local user.name "monlor"
|
git config --local user.name "monlor"
|
||||||
|
|
||||||
|
fi
|
||||||
|
if [ ! -f ".gitattributes" ]; then
|
||||||
|
git lfs install
|
||||||
|
git lfs track "*"
|
||||||
fi
|
fi
|
||||||
if git status &> /dev/null; then
|
if git status &> /dev/null; then
|
||||||
git add .
|
git add .
|
||||||
|
|||||||
Reference in New Issue
Block a user