forked from gnulag/gnulag.net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
50 lines (40 loc) · 1.18 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
image: alpine:latest
variables:
# KUBE_INGRESS_BASE_DOMAIN is the application deployment domain and should be set as a variable at the group or project level.
KUBE_INGRESS_BASE_DOMAIN: gnulag.net
KUBERNETES_VERSION: 1.14.3
HELM_VERSION: 2.14.2
POSTGRES_USER: user
POSTGRES_PASSWORD: testing-password
POSTGRES_ENABLED: "false"
POSTGRES_DB: $CI_ENVIRONMENT_SLUG
POSTGRES_VERSION: 9.6.2
ROLLOUT_RESOURCE_TYPE: deployment
REPLICAS: 4
stages:
- build
- test
- deploy # dummy stage to follow the template guidelines
- review
- dast
- staging
- canary
- production
- incremental rollout 10%
- incremental rollout 25%
- incremental rollout 50%
- incremental rollout 100%
- performance
- cleanup
include:
- project: 'cocainefarm/templates/ci'
file: '/Build.gitlab-ci.yaml'
- template: Jobs/Deploy.gitlab-ci.yml
- template: Security/Container-Scanning.gitlab-ci.yml
- template: Security/Dependency-Scanning.gitlab-ci.yml
.auto-deploy:
image: "registry.gitlab.com/cocainefarm/templates/auto-deploy-image/master:acb0922ad53e5505bfac21dfc632d7d700a56030"
production:
environment:
name: production
url: http://$KUBE_INGRESS_BASE_DOMAIN