-
Notifications
You must be signed in to change notification settings - Fork 1
/
continuous-pipe.yml
executable file
·127 lines (114 loc) · 3.3 KB
/
continuous-pipe.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
defaults:
cluster: ${CLUSTER}
environment:
name: '"ezdemo-" ~ code_reference.branch'
variables:
- name: SYMFONY_ENV
value: prod
pipelines:
- name: Production
condition: 'not(code_reference.branch matches "#^cpdev/#")'
tasks: [ images, storage, setup, deployment ]
- name: Remote
condition: 'code_reference.branch matches "#^cpdev/#"'
tasks: [ images, storage, setup, deployment ]
variables:
- name: SYMFONY_ENV
value: dev
tasks:
images:
build:
services:
web:
image: quay.io/inviqa_images/ez-platform-demo
naming_strategy: sha1
storage:
deploy:
services:
database:
specification:
volumes:
- type: persistent
name: database-volume
capacity: 5Gi
storage_class: default
volume_mounts:
- name: database-volume
mount_path: /var/lib/mysql
command:
- /usr/local/bin/docker-entrypoint.sh
- mysqld
- --ignore-db-dir=lost+found
- --max_allowed_packet=128M
ports:
- 3306
resources:
requests:
cpu: 50m
memory: 250Mi
limits:
cpu: 500m
memory: 2Gi
deployment_strategy:
readiness_probe:
type: tcp
port: 3306
deployment:
deploy:
services:
proxy:
endpoints:
-
name: proxy
cloud_flare_zone:
zone_identifier: ${CLOUD_FLARE_ZONE}
authentication:
email: ${CLOUD_FLARE_EMAIL}
api_key: ${CLOUD_FLARE_API_KEY}
proxied: true
record_suffix: '-ezdemo.webpipeline.net'
ingress:
class: nginx
host_suffix: '-ezdemo.webpipeline.net'
specification:
ports:
- 80
- 443
environment_variables:
- name: AUTH_HTTP_ENABLED
value: "true"
- name: AUTH_HTTP_HTPASSWD
value: ${AUTH_HTTP_HTPASSWD}
- name: AUTH_IP_WHITELIST_ENABLED
value: "true"
- name: AUTH_IP_WHITELIST
value: ${AUTH_IP_WHITELIST}
- name: TRUSTED_REVERSE_PROXIES
value: ${TRUSTED_REVERSE_PROXIES}
- name: WEB_REVERSE_PROXIED
value: "true"
web:
specification:
ports:
- 443
environment_variables: &WEB_ENV_VARS
- name: SYMFONY_ENV
value: ${SYMFONY_ENV}
- name: DATABASE_NAME
value: ${DATABASE_NAME}
- name: DATABASE_USER
value: ${DATABASE_USER}
- name: DATABASE_PASSWORD
value: ${DATABASE_PASSWORD}
- name: DATABASE_ROOT_PASSWORD
value: ${DATABASE_ROOT_PASSWORD}
- name: SYMFONY_SECRET
value: ${SYMFONY_SECRET}
setup:
run:
image:
from_service: web
commands:
- container setup
environment_variables:
<<: *WEB_ENV_VARS