-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcustom-build.yaml
49 lines (49 loc) · 1.1 KB
/
custom-build.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: v1
kind: Template
metadata:
creationTimestamp: null
name: custom-promote
objects:
- apiVersion: v1
kind: BuildConfig
metadata:
annotations:
description: Custom build to promote image from one registry to another
creationTimestamp: null
labels:
name: custom-promote
template: custom-promote-template
name: custom-promote
spec:
output:
to:
kind: ImageStreamTag
name: jenkins-master:promote
resources: {}
source:
git:
uri: https://github.com/mfojtik/jenkins-ci.git
type: Git
strategy:
customStrategy:
from:
kind: DockerImage
name: aweiteka/ose-custom-push
env:
- name: PULL_REGISTRY
value: ${PULL_REGISTRY}
- name: PULL_IMAGE
value: ${PULL_IMAGE}
- name: PUSH_REGISTRY
value: ${PUSH_REGISTRY}
exposeDockerSocket: true
type: Custom
triggers:
- imageChange: {}
type: ImageChange
status:
lastVersion: 0
parameters:
- name: PULL_REGISTRY
- name: PULL_IMAGE
- name: PUSH_REGISTRY