-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
44 lines (42 loc) · 949 Bytes
/
.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
job_deploy_fr:
environment: production
variables:
CI_BUILD_REF_NAME: master
only:
- master
stage: deploy
tags:
- fr.atc
script:
- GIT_WORK_TREE=/home/blast/public/www/ git checkout -f
- sleep 10
- sudo systemctl restart t6ss
- sudo systemctl restart caddy
job_deploy_us:
environment: production
variables:
CI_BUILD_REF_NAME: master
only:
- master
stage: deploy
tags:
- us.atc
script:
- GIT_WORK_TREE=/home/blast/public/www/ git checkout -f
- sleep 10
- sudo systemctl restart t6ss
- sudo systemctl restart caddy
job_deploy_dev:
environment: dev
variables:
CI_BUILD_REF_NAME: dev-v2
only:
- dev
stage: deploy
tags:
- us.atc.dev
script:
- GIT_WORK_TREE=/home/blast/dev/www/ git checkout -f
- sleep 2
- sudo systemctl restart t6ss
- sudo systemctl restart caddy