-
Notifications
You must be signed in to change notification settings - Fork 0
/
s2i-build-template.yml
82 lines (73 loc) · 2.02 KB
/
s2i-build-template.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
apiVersion: v1
kind: Template
labels:
template: sakuli-s2i-testsuite-image-build
metadata:
annotations:
description: Build config to create a ready to run Sakuli2 container with the specified testsuite
tags: consol, sakuli2, custom-image, s2i, source-to-image
name: sakuli-s2i-testsuite-image-build
parameters:
- description: Name for the target image of the build.
name: IMAGE
required: true
value: sakuli-s2i-testsuite
- description: Image tag of the target image.
name: IMAGE_TAG
required: true
value: latest
- description: Git source URL containing the test suite.
name: TESTSUITE_REPOSITORY_URL
required: true
- description: Git branch/tag reference.
name: TESTSUITE_REPOSITORY_REF
value: "master"
required: true
- description: Source folder where the test suite is located.
name: TESTSUITE_CONTEXT_DIR
- description: Secret to access the testsuite repository.
name: TESTSUITE_REPOSITORY_SECRET
- description: Name of the builder image.
name: BUILDER_IMAGE
required: true
value: sakuli-s2i
- description: Tag of the builder image to use.
name: BUILDER_IMAGE_TAG
required: true
value: latest
objects:
- apiVersion: v1
kind: ImageStream
metadata:
labels:
application: ${IMAGE}
name: ${IMAGE}
- apiVersion: v1
kind: BuildConfig
metadata:
labels:
build: ${IMAGE}
name: ${IMAGE}
spec:
output:
to:
kind: ImageStreamTag
name: ${IMAGE}:${IMAGE_TAG}
source:
type: Git
git:
ref: ${TESTSUITE_REPOSITORY_REF}
uri: ${TESTSUITE_REPOSITORY_URL}
contextDir: ${TESTSUITE_CONTEXT_DIR}
sourceSecret:
name: ${TESTSUITE_REPOSITORY_SECRET}
strategy:
type: Source
sourceStrategy:
from:
kind: ImageStreamTag
name: ${BUILDER_IMAGE}:${BUILDER_IMAGE_TAG}
triggers:
- imageChange: {}
type: ImageChange
- type: ConfigChange