-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
executable file
·67 lines (62 loc) · 1.19 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
stages:
# - newsite
# - build
# - test
- deploy
# .newsite:make: &makedef
# script:
# - sudo darktools newsite --non-interactive --if-not-exists
# variables:
# DARKTOOLS_FQDN: "lax.xunn.io"
# stage: newsite
# tags:
# - darktools
# - local
# newsite:make_production:
# <<: *makedef
# environment: production
# only: master
# newsite:make_develop:
# <<: *makedef
# environment: staging
# only: develop
deploy:master_to_www:
script:
- /home/build-scripts/deploy/lax-master
stage: deploy
environment: production
variables:
WEBMIRROR_JSON_CONFIG: |+
{
"branches": {
"master": {
"web_public_dir": "www",
"web_push_target": "lax.xunn.io/main"
}
}
}
only:
- master
- triggers
tags:
- deploy
deploy:develop_to_www:
script:
- /home/build-scripts/deploy/lax-develop
stage: deploy
environment: staging
variables:
WEBMIRROR_JSON_CONFIG: |+
{
"branches": {
"develop": {
"web_public_dir": "www",
"web_push_target": "lax.xunn.io/develop"
}
}
}
only:
- develop
- triggers
tags:
- deploy