This repository has been archived by the owner on Nov 14, 2023. It is now read-only.
forked from tobru/nextcloud-openshift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update-pipeline.yaml
61 lines (61 loc) · 1.88 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
apiVersion: v1
kind: Template
metadata:
name: nextcloud
annotations:
description: "Nextcloud - A safe home for all your data"
tags: "fileshare,nextcloud"
iconClass: fa-cloud-upload
template.openshift.io/provider-display-name: "jngrb"
template.openshift.io/documentation-url: "https://github.com/jngrb/nextcloud-openshift/blob/master/README.md"
template.openshift.io/support-url: "https://github.com/jngrb/nextcloud-openshift/issues"
parameters:
- name: NEXTCLOUD_HOST
description: Application URL of Nextcloud (Route/host)
required: true
- name: JENKINSFILE_REPO
description: Jenkins source repository
value: https://github.com/jngrb/nextcloud-openshift.git
- name: GIT_BRANCH
description: branch in source repository
value: master
- name: NEXTCLOUD_IMAGE_TAG
description: Tag of the Nextcloud Docker Image to deploy
value: 16-fpm
- name: BUILD_FIXED_IMAGE
description: Care for the image with fixed permissions as described in section 'Redis Cache for Sessions without root privileges' of README.md
value: "true"
- name: PVC_SIZE
description: PVC size for Apps, Config and Data
value: 20Gi
- name: REPLICAS
description: Number of Nextcloud replicas
value: '1'
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: NEXTCLOUD_HOST
value: "${NEXTCLOUD_HOST}"
- name: NEXTCLOUD_IMAGE_TAG
value: "${NEXTCLOUD_IMAGE_TAG}"
- name: BUILD_FIXED_IMAGE
value: "${BUILD_FIXED_IMAGE}"
- name: PVC_SIZE
value: "${PVC_SIZE}"
- name: REPLICAS
value: "${REPLICAS}"