-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
51 lines (46 loc) · 888 Bytes
/
.gitlab-ci.yml
File metadata and controls
51 lines (46 loc) · 888 Bytes
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
image:
name: hashicorp/terraform:light
entrypoint:
- '/usr/bin/env'
- 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
stages:
- deploy development
- deploy staging
- deploy production
deploydevelopment:
stage: deploy development
script:
- sh ./scripts/deploy_development.sh
environment:
name: development
except:
refs:
- master
deploystaging:
stage: deploy staging
script:
- sh ./scripts/deploy_staging.sh
environment:
name: staging
only:
refs:
- master
checkproduction:
stage: deploy production
script:
- sh ./scripts/check_production.sh
environment:
name: production
only:
refs:
- master
deployproduction:
stage: deploy production
when: manual
script:
- sh ./scripts/deploy_production.sh
environment:
name: production
only:
refs:
- master