forked from monlor/MIXBOX-ARCHIVE
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
79 lines (71 loc) · 1.93 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
image: lholota/bash-git:latest
stages:
- deploy
deploy:branchs:
stage: deploy
only:
- master
- test
script:
- apk add git-lfs
- git clone -b ${CI_COMMIT_REF_NAME} ${GL_REF}/monlor/mbfiles.git
- bash -e ./tools/gitsync.sh pack
# - 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} ${GH_REF}/monlor/mbfiles.git
# deploy:dev:
# stage: deploy
# only:
# - dev
# script:
# - apk add git-lfs
# - git clone -b ${CI_COMMIT_REF_NAME} ${GL_REF}/monlor/mbfiles.git
# - bash -e ./tools/gitsync.sh pack
# - bash ./tools/gitsync.sh deploy mbfiles ${CI_COMMIT_REF_NAME} ${GL_REF}/monlor/mbfiles.git
deploy:master:
stage: deploy
only:
- tags
tags:
- deploy-*
script:
- apk add git-lfs
- git fetch origin master
- git checkout master
- git clone -b master ${GL_REF}/monlor/mbfiles.git
- bash -e ./tools/gitsync.sh pack
- bash ./tools/gitsync.sh deploy mbfiles master ${CO_REF}/monlor/mbfiles.git
cache:
key: master
untracked: true
deploy:test:
stage: deploy
only:
- tags
tags:
- deploy-*
script:
- apk add git-lfs
- git fetch origin test
- git checkout test
- git clone -b test ${GL_REF}/monlor/mbfiles.git
- bash -e ./tools/gitsync.sh pack
- bash ./tools/gitsync.sh deploy mbfiles test ${CO_REF}/monlor/mbfiles.git
cache:
key: test
untracked: true
syncode:github:
stage: deploy
only:
- master
- test
- dev
script:
- git fetch origin ${CI_COMMIT_REF_NAME}
- git checkout ${CI_COMMIT_REF_NAME}
- git push ${GH_REF}/monlor/MIXBOX.git ${CI_COMMIT_REF_NAME}:${CI_COMMIT_REF_NAME}
# cache:
# key: ${CI_COMMIT_REF_NAME}
# untracked: true
# paths:
# - mbfiles/