-
Notifications
You must be signed in to change notification settings - Fork 3
/
continuous-pipe.yml
60 lines (56 loc) · 1.63 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
defaults:
cluster: ${CLUSTER}
environment:
name: '"sfdemo-" ~ code_reference.branch'
variables:
- name: SYMFONY_ENV
value: prod
pipelines:
- name: Production
condition: 'code_reference.branch in ["master"]'
tasks: [ images, deployment ]
- name: Feature branches
condition: 'code_reference.branch not in ["master"] and not(code_reference.branch matches "#^cpdev/#")'
tasks: [ images, deployment ]
- name: Remote
condition: 'code_reference.branch matches "#^cpdev/#"'
tasks: [ images, deployment ]
variables:
- name: SYMFONY_ENV
value: dev
tasks:
images:
build:
services:
web:
image: ${IMAGE_NAME}
naming_strategy: sha1
deployment:
deploy:
services:
web:
endpoints:
- name: web
cloud_flare_zone:
zone_identifier: ${CLOUD_FLARE_ZONE}
authentication:
email: ${CLOUD_FLARE_EMAIL}
api_key: ${CLOUD_FLARE_API_KEY}
proxied: true
record_suffix: '-sfdemo.continuouspipe.net'
ingress:
class: nginx
host_suffix: '-sfdemo.continuouspipe.net'
specification:
environment_variables:
- name: SYMFONY_ENV
value: ${SYMFONY_ENV}
- name: TRUSTED_REVERSE_PROXIES
value: ${TRUSTED_REVERSE_PROXIES}
- name: WEB_REVERSE_PROXIED
value: "true"
deployment_strategy:
readiness_probe:
type: http
port: 80
path: /