-
Notifications
You must be signed in to change notification settings - Fork 0
/
asciidoctor-s2i.yaml
174 lines (174 loc) · 5.66 KB
/
asciidoctor-s2i.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
kind: Template
apiVersion: v1
metadata:
name: asciidoctor-s2i
labels:
template: asciidoctor-s2i
annotations:
description: >-
An asciidoctor s2i builder. All files named *.adoc will be converted.
you need a file index.adoc as central page.
iconClass: icon-nginx
openshift.io/display-name: AsciiDoctor S2I Builder
openshift.io/documentation-url: 'https://github.com/klenkes74/openshift-asciidoctor'
openshift.io/long-description: >-
This image is an S2I builder running on top of the centos nginx image.
openshift.io/provider-display-name: 'Kaiserpfalz EDV-Service, Roland T. Lichti'
openshift.io/support-url: 'https://www.kaiserpfalz-edv.de'
tags: 'nginx,builder,cms'
template.openshift.io/bindable: 'false'
parameters:
- name: ASCIIDOCTOR_VERSION
displayName: Version (ASCIIDOCTOR)
description: The version of asciidoctor used.
required: true
value: '2.0.9'
- name: ASCIIDOCTOR_CONFLUENCE_VERSION
displayName: Version (ASCIIDOCTOR Confluence)
description: The version of the confluence plugin for asciidoctor.
required: true
value: '0.0.2'
- name: ASCIIDOCTOR_PDF_VERSION
displayName: Version (ASCIIDOCTOR PDF)
description: The version of the PDF plugin for asciidoctor.
required: true
value: '1.5.0.alpha.17'
- name: ASCIIDOCTOR_BIBLIOGRAPHY_VERSION
displayName: Version (ASCIIDOCTOR bibliography)
description: The version of the bibliography generation plugin for asciidoctor.
required: true
value: '0.8.0'
- name: ASCIIDOCTOR_DIAGRAM_VERSION
displayName: Version (ASCIIDOCTOR Diagram)
description: The version of the diagram plugin for asciidoctor.
required: true
value: '1.5.16'
- name: ASCIIDOCTOR_EPUB3_VERSION
displayName: Version (EPUB3 Plugin)
description: The version for the EPUB3 plugin for asciidoctor
required: true
value: '1.5.0.alpha.9'
- name: ASCIIDOCTOR_MATHEMATICAL_VERSION
displayName: Version (Mathematical Plugin)
description: The version of the math plugin for asciidoctor.
required: true
value: '0.3.0'
- name: ASCIIDOCTOR_REVEALJS_VERSION
displayName: Version (RevealJS Plugin)
description: The version of the RevealJS plugin for asciidoctor.
required: true
value: '2.0.0'
- name: GITHUB_SECRET
displayName: GitHub WebHook Secret
description: The BASE64 encoded GitHub WebHook Secret
required: true
value: dGExdmFpZjhob3AwbmVpOEhlZTU=
objects:
- kind: BuildConfig
apiVersion: v1
metadata:
name: nginx-asciidoctor-base-${ASCIIDOCTOR_VERSION}-pipeline
labels:
build: nginx-asciidoctor-base-${ASCIIDOCTOR_VERSION}
template: asciidoctor-s2i
delete: asciidoctor-s2i-${ASCIIDOCTOR_VERSION}
spec:
failedBuildsHistoryLimit: 2
successfulBuildsHistoryLimit: 3
resources:
limits:
cpu: 2000m
memory: 2Gi
runPolicy: Serial
source:
git:
uri: "https://github.com/klenkes74/openshift-asciidoctor.git"
ref: "master"
contextDir: "asciidoctor-s2i"
strategy:
type: JenkinsPipeline
jenkinsPipelineStrategy:
jenkinsfilePath: Jenkinsfile
env:
- name: ASCIIDOCTOR_VERSION
value: "${ASCIIDOCTOR_VERSION}"
triggers:
- type: GitHub
github:
secretReference:
name: asciidoctor-s2i-${ASCIIDOCTOR_VERSION}
- type: ConfigChange
- imageChange:
lastTriggeredImageID: docker-registry.default.svc:5000/openshift/nginx@sha256:e24f944339b6cd48ba74f6950d2e32e003c156d4e701ad4f4e5b3b7ac6b73230
type: ImageChange
- kind: BuildConfig
apiVersion: build.openshift.io/v1
metadata:
name: nginx-asciidoctor-base-${ASCIIDOCTOR_VERSION}
labels:
build: nginx-asciidoctor-base-${ASCIIDOCTOR_VERSION}
template: asciidoctor-s2i
delete: asciidoctor-s2i-${ASCIIDOCTOR_VERSION}
spec:
failedBuildsHistoryLimit: 1
successfulBuildsHistoryLimit: 1
resources:
limits:
cpu: 2000m
memory: 2Gi
runPolicy: Serial
source:
git:
uri: "https://github.com/klenkes74/openshift-asciidoctor.git"
ref: "master"
contextDir: "asciidoctor-s2i"
strategy:
type: Docker
dockerStrategy:
from:
kind: ImageStreamTag
name: nginx:1.12
namespace: openshift
env:
- name: ASCIIDOCTOR_VERSION
value: "${ASCIIDOCTOR_VERSION}"
- name: ASCIIDOCTOR_CONFLUENCE_VERSION
value: "${ASCIIDOCTOR_CONFLUENCE_VERSION}"
- name: ASCIIDOCTOR_PDF_VERSION
value: "${ASCIIDOCTOR_PDF_VERSION}"
- name: ASCIIDOCTOR_BIBLIOGRAPHY_VERSION
value: "${ASCIIDOCTOR_BIBLIOGRAPHY_VERSION}"
- name: ASCIIDOCTOR_DIAGRAM_VERSION
value: "${ASCIIDOCTOR_DIAGRAM_VERSION}"
- name: ASCIIDOCTOR_EPUB3_VERSION
value: "${ASCIIDOCTOR_EPUB3_VERSION}"
- name: ASCIIDOCTOR_MATHEMATICAL_VERSION
value: "${ASCIIDOCTOR_MATHEMATICAL_VERSION}"
- name: ASCIIDOCTOR_REVEALJS_VERSION
value: "${ASCIIDOCTOR_REVEALJS_VERSION}"
output:
to:
kind: ImageStreamTag
name: "asciidoctor-s2i-${ASCIIDOCTOR_VERSION}:test"
- kind: ImageStream
apiVersion: image.openshift.io/v1
metadata:
name: asciidoctor-s2i-${ASCIIDOCTOR_VERSION}
labels:
template: asciidoctor-s2i
build: nginx-asciidoctor-base-${ASCIIDOCTOR_VERSION}
delete: asciidoctor-s2i-${ASCIIDOCTOR_VERSION}
spec:
lookupPolicy:
local: true
- kind: Secret
apiVersion: v1
metadata:
name: asciidoctor-s2i-${ASCIIDOCTOR_VERSION}
labels:
template: asciidoctor-s2i
build: nginx-asciidoctor-base-${ASCIIDOCTOR_VERSION}
delete: asciidoctor-s2i-${ASCIIDOCTOR_VERSION}
type: Opaque
data:
WebHookSecretKey: ${GITHUB_SECRET}