-
Notifications
You must be signed in to change notification settings - Fork 271
/
Copy pathbuild-template.yaml
49 lines (46 loc) · 1002 Bytes
/
build-template.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
---
apiVersion: template.openshift.io/v1
kind: Template
metadata:
annotations:
description: Build resources for the openshift-deployment-operator
name: python-kopf-s2i-build
parameters:
- name: FROM_IMAGE
value: registry.access.redhat.com/ubi9/python-312:latest
- name: GIT_REPO
value: https://github.com/redhat-cop/containers-quickstarts.git
- name: NAME
value: python-kopf-s2i
objects:
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: ${NAME}
spec:
lookupPolicy:
local: false
- apiVersion: v1
kind: BuildConfig
metadata:
name: ${NAME}
spec:
output:
to:
kind: ImageStreamTag
name: ${NAME}:latest
postCommit: {}
resources: {}
runPolicy: Serial
source:
git:
uri: ${GIT_REPO}
ref: master
contextDir: build-s2i-python-kopf
strategy:
type: Docker
dockerStrategy:
from:
kind: DockerImage
name: ${FROM_IMAGE}
triggers: []