-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuildconfig.yaml
39 lines (39 loc) · 978 Bytes
/
buildconfig.yaml
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
apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
annotations:
description: Defines how to build the application
template.alpha.openshift.io/wait-for-ready: "true"
labels:
app: cakephp-mysql
template: cakephp-mysql
name: {{ .Values.name }}
spec:
output:
to:
kind: ImageStreamTag
name: {{ .Values.name }}:latest
postCommit:
script: ./vendor/bin/phpunit
source:
contextDir: {{ .Values.context_dir }}
git:
ref: {{ .Values.source_repository_ref }}
uri: {{ .Values.source_repository_url }}
type: Git
strategy:
sourceStrategy:
env:
- name: COMPOSER_MIRROR
value: {{ .Values.composer_mirror }}
from:
kind: ImageStreamTag
name: php:{{ .Values.php_version }}
namespace: {{ .Values.namespace }}
type: Source
triggers:
- type: ImageChange
- type: ConfigChange
- github:
secret: {{ .Values.github_webhook_secret }}
type: GitHub