-
Notifications
You must be signed in to change notification settings - Fork 1
/
jslave-cloudci-stage-buildconfig-template.yaml
68 lines (68 loc) · 1.58 KB
/
jslave-cloudci-stage-buildconfig-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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
apiVersion: v1
kind: Template
labels:
template: jslave-cloudci-stage-builder
metadata:
annotations:
description: CloudCI Jenkins Slaves
iconClass: icon-jenkins
tags: instant-app,jenkins
name: jslave-cloudci-stage-builder
objects:
- apiVersion: v1
kind: ImageStream
metadata:
annotations:
slave-label: jslave-container-fedora-36-stage
name: jslave-container-fedora-36-stage
spec: {}
- apiVersion: v1
kind: BuildConfig
metadata:
name: jslave-container-fedora-36-stage
spec:
output:
to:
kind: ImageStreamTag
name: jslave-container-fedora-36-stage:latest
resources: {}
source:
contextDir: ${CONTEXTDIR}
git:
ref: ${REPO_REF}
uri: ${REPO_URL}
type: Git
strategy:
dockerStrategy:
forcePull: true
noCache: true
env:
- name: GIT_SSL_NO_VERIFY
value: 'true'
type: Docker
triggers:
- type: ConfigChange
# 50G PVC
- kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: "jslave-stage-pv"
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: "50Gi"
parameters:
- description: Git repository with Dockerfile and slave entrypoint.
displayName: Repository URL
name: REPO_URL
value: https://github.com/virt-s1/jenkins-cloudci.git
- description: The sub-directory inside the repository.
displayName: Context Directory
name: CONTEXTDIR
value: jslave-stage
- description: The git ref or tag to use for customization.
displayName: Git Reference
name: REPO_REF
value: master