cara/app-config/openshift/buildconfig.yaml

57 lines
1.5 KiB
YAML
Raw Normal View History

---
kind: "Template"
2021-12-05 21:26:37 +00:00
apiVersion: template.openshift.io/v1
metadata:
2022-09-09 13:05:29 +00:00
name: "caimira-application"
creationTimestamp: null
annotations:
2022-09-09 13:05:29 +00:00
description: "CAiMIRA build config OpenShift template."
tags: "caimira-application"
labels:
2022-09-09 13:05:29 +00:00
template: "caimira-application"
objects:
-
kind: BuildConfig
2021-12-05 21:26:37 +00:00
apiVersion: build.openshift.io/v1
metadata:
2022-09-09 13:05:29 +00:00
name: caimira-router
labels:
2022-09-09 13:05:29 +00:00
template: "caimira-application"
spec:
source:
type: Git
git:
ref: ${GIT_BRANCH}
uri: ${GIT_REPO}
contextDir: app-config/nginx
postCommit: {}
resources: {}
runPolicy: Serial
output:
to:
kind: ImageStreamTag
2022-09-09 13:05:29 +00:00
name: 'caimira-router:latest'
strategy:
sourceStrategy:
from:
kind: ImageStreamTag
2021-08-26 04:08:10 +00:00
name: 'nginx:1.18-ubi8'
namespace: openshift
type: Source
triggers:
- type: ImageChange
imageChange: {}
- type: ConfigChange
- generic:
secretReference:
2022-09-09 13:05:29 +00:00
name: gitlab-caimira-webhook-secret
type: Generic
nodeSelector: null
parameters:
- name: GIT_REPO
description: The GIT repo URL
2022-12-15 14:30:11 +00:00
value: 'https://gitlab.cern.ch/caimira/caimira.git'
- name: GIT_BRANCH
2022-09-09 09:42:16 +00:00
description: The name of the GIT branch to use when building the app, e.g. `live/caimira-test` in TEST, `master` in prod
required: true