-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitlab-ci.yml
57 lines (50 loc) · 1.25 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
image: python:alpine
stages:
- build
- deploy
before_script:
- pip install mkdocs
generate:
stage: build
script:
- mkdocs build
artifacts:
paths:
- site
deploy to production:
environment: production
image: python:latest
stage: deploy
dependencies:
- generate # We want to specify dependencies in an explicit way, to avoid confusion if there are different build jobs
before_script:
- pip install awscli
script:
- aws s3 sync --delete site s3://s3.developer.tripgo.com
only:
- master
deploy to beta:
environment: beta
image: python:latest
stage: deploy
dependencies:
- generate # We want to specify dependencies in an explicit way, to avoid confusion if there are different build jobs
before_script:
- pip install awscli
script:
- aws s3 sync --delete site s3://s3.beta.developer.tripgo.com
only:
- beta
deploy to staging:
environment: staging
image: python:latest
stage: deploy
dependencies:
- generate # We want to specify dependencies in an explicit way, to avoid confusion if there are different build jobs
before_script:
- pip install awscli
script:
- aws s3 sync --delete site s3://s3.staging.developer.tripgo.com
except:
- master
- beta