This repository has been archived by the owner on Nov 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathupdate-pipeline.yaml
66 lines (66 loc) · 2.12 KB
/
update-pipeline.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
apiVersion: v1
kind: Template
metadata:
name: openproject
annotations:
description: "OpenProject - Online Open-Source Project Management"
tags: "projectmanagement,openproject"
iconClass: fa-cloud-upload
template.openshift.io/provider-display-name: "jngrb"
template.openshift.io/documentation-url: "https://github.com/jngrb/openproject-openshift/blob/master/README.md"
template.openshift.io/support-url: "https://github.com/jngrb/openproject-openshift/issues"
parameters:
- name: OPENPROJECT_HOST
description: Application URL of OpenProject (Route/host)
required: true
- name: JENKINSFILE_REPO
description: Jenkins source repository
value: https://github.com/jngrb/openproject-openshift.git
- name: GIT_BRANCH
description: branch in source repository
value: master
- name: COMMUNITY_IMAGE_NAME
description: Image name of the OpenProject Community Docker Image to be deployed
value: openproject/community
- name: COMMUNITY_IMAGE_TAG
description: Tag of the Openproject Docker Image to deploy
value: "10.6"
- name: BUILD_FORK_IMAGE
description: Care for a forked OpenProject repository
value: "false"
- name: DATABASE_SECRET
description: Name of the secret with the database reference DATABASE_URL
value: openproject-database-secret
- name: PVC_SIZE
description: PVC size for Apps, Config and Data
value: 4Gi
objects:
- apiVersion: v1
kind: BuildConfig
metadata:
labels:
name: update-pipeline
name: update-pipeline
spec:
source:
type: Git
git:
uri: "${JENKINSFILE_REPO}"
ref: "${GIT_BRANCH}"
strategy:
type: JenkinsPipeline
jenkinsPipelineStrategy:
jenkinsfilePath: Jenkinsfile
env:
- name: OPENPROJECT_HOST
value: "${OPENPROJECT_HOST}"
- name: COMMUNITY_IMAGE_NAME
value: "${COMMUNITY_IMAGE_NAME}"
- name: COMMUNITY_IMAGE_TAG
value: "${COMMUNITY_IMAGE_TAG}"
- name: BUILD_FORK_IMAGE
value: "${BUILD_FORK_IMAGE}"
- name: DATABASE_SECRET
value: "${DATABASE_SECRET}"
- name: PVC_SIZE
value: "${PVC_SIZE}"