forked from edseymour/pvc-transfer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenshift-buildconfig.yaml
59 lines (59 loc) · 1.22 KB
/
openshift-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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
apiVersion: v1
kind: Template
metadata: {}
parameters:
- name: GITURI
displayName: Git URI
description: location of source-code
required: true
value: https://github.com/edseymour/pvc-transfer.git
- description: Webhook secret used to in webhook build triggers
displayName: Webhook Secret
from: '[a-zA-Z0-9]{8}'
generate: expression
name: WEBHOOK_SECRET
required: true
objects:
- apiVersion: v1
kind: ImageStream
metadata:
name: rsync
- apiVersion: v1
kind: BuildConfig
metadata:
name: rsync
spec:
failedBuildsHistoryLimit: 5
nodeSelector: null
output:
to:
kind: ImageStreamTag
name: rsync:latest
postCommit: {}
resources: {}
runPolicy: Serial
source:
contextDir: docker
git:
uri: ${GIRURI}
type: Git
strategy:
dockerStrategy:
from:
kind: ImageStreamTag
name: centos:7
namespace: openshift
type: Docker
successfulBuildsHistoryLimit: 5
triggers:
- github:
secret: ${WEBHOOK_SECRET}
type: GitHub
- generic:
secret:${WEBHOOK_SECRET}
type: Generic
- type: ConfigChange
- imageChange: {}
type: ImageChange
status:
lastVersion: 0