-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
72 lines (66 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
stages:
- test
- publish
- deploy
# github pages
publish pages:
image: docker:stable
services:
- docker:dind
- docker:python:3
only:
- master
stage: publish
script:
- sh run-publish-pages.sh
publish image to production:
image: docker:stable
services:
- docker:dind
- docker:python:3
before_script:
- docker info
only:
- tags
stage: publish
script:
- cd api && sh run-publish-docker.sh production
publish image to staging:
image: docker:stable
services:
- docker:dind
- docker:python:3
before_script:
- docker info
only:
- dev
stage: publish
script:
- cd api && sh run-publish-docker.sh staging
deploy to production:
image: python:3.5.6-slim-stretch
only:
- tags
stage: deploy
script:
- cd api
- sh install-kubectl.sh
- sh run-deploy.sh production
# deploy to staging:
# image: python:3
# only:
# - dev
# stage: deploy
# script:
# - cd api
# - sh install-kubectl.sh
# - sh run-deploy.sh staging
deploy to heroku:
before_script:
- gem install dpl
stage: deploy
script:
- sh heroku-helper.sh
- cd api/api_gateway && dpl --provider=heroku --app=integra-vendas-api-gateway --api-key=$HEROKU_DEV_KEY
only:
- dev