|
| 1 | +{{- if .Values.openshift.build.enabled }} |
| 2 | +apiVersion: build.openshift.io/v1 |
| 3 | +kind: BuildConfig |
| 4 | +metadata: |
| 5 | + name: {{ include "pint.fullname" . }} |
| 6 | + namespace: {{ .Release.Namespace }} |
| 7 | + labels: |
| 8 | + {{- include "pint.labels" . | nindent 4 }} |
| 9 | + annotations: |
| 10 | + app.openshift.io/vcs-ref: {{ .Values.openshift.build.gitRef | quote }} |
| 11 | + app.openshift.io/vcs-uri: {{ .Values.openshift.build.gitRepo | quote }} |
| 12 | +spec: |
| 13 | + output: |
| 14 | + to: |
| 15 | + kind: ImageStreamTag |
| 16 | + name: {{ printf "%s:%s" .Values.openshift.build.imageStreamName .Values.pint.image.tag | quote }} |
| 17 | + successfulBuildsHistoryLimit: 3 |
| 18 | + failedBuildsHistoryLimit: 2 |
| 19 | + strategy: |
| 20 | + type: Docker |
| 21 | + dockerStrategy: |
| 22 | + dockerfilePath: Dockerfile |
| 23 | + source: |
| 24 | + type: Git |
| 25 | + git: |
| 26 | + uri: {{ .Values.openshift.build.gitRepo | quote }} |
| 27 | + ref: {{ .Values.openshift.build.gitRef | quote }} |
| 28 | + contextDir: / |
| 29 | + triggers: |
| 30 | + - type: ConfigChange |
| 31 | + - type: GitHub |
| 32 | + github: |
| 33 | + secretReference: |
| 34 | + name: {{ .Values.openshift.build.webhookSecret | quote }} |
| 35 | + runPolicy: Serial |
| 36 | +{{- if .Values.freeradius.enabled }} |
| 37 | +--- |
| 38 | +apiVersion: build.openshift.io/v1 |
| 39 | +kind: BuildConfig |
| 40 | +metadata: |
| 41 | + name: {{ include "pint.freeradiusFullname" . }} |
| 42 | + namespace: {{ .Release.Namespace }} |
| 43 | + labels: |
| 44 | + {{- include "pint.freeradiusLabels" . | nindent 4 }} |
| 45 | + annotations: |
| 46 | + app.openshift.io/vcs-ref: {{ .Values.openshift.build.gitRef | quote }} |
| 47 | + app.openshift.io/vcs-uri: {{ .Values.openshift.build.gitRepo | quote }} |
| 48 | +spec: |
| 49 | + output: |
| 50 | + to: |
| 51 | + kind: ImageStreamTag |
| 52 | + name: {{ printf "%s:%s" .Values.openshift.build.freeradiusImageStreamName .Values.freeradius.image.tag | quote }} |
| 53 | + successfulBuildsHistoryLimit: 3 |
| 54 | + failedBuildsHistoryLimit: 2 |
| 55 | + strategy: |
| 56 | + type: Docker |
| 57 | + dockerStrategy: |
| 58 | + dockerfilePath: Dockerfile |
| 59 | + source: |
| 60 | + type: Git |
| 61 | + git: |
| 62 | + uri: {{ .Values.openshift.build.gitRepo | quote }} |
| 63 | + ref: {{ .Values.openshift.build.gitRef | quote }} |
| 64 | + contextDir: /dev/freeradius |
| 65 | + triggers: |
| 66 | + - type: ConfigChange |
| 67 | + - type: GitHub |
| 68 | + github: |
| 69 | + secretReference: |
| 70 | + name: {{ .Values.openshift.build.webhookSecret | quote }} |
| 71 | + runPolicy: Serial |
| 72 | +{{- end }} |
| 73 | +{{- end }} |
0 commit comments