forked from bcgov/hets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi-build-config.yaml
132 lines (132 loc) · 3.31 KB
/
api-build-config.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
kind: Template
apiVersion: v1
metadata:
name: ${PROJECT_NAME}
creationTimestamp:
labels:
template: api-build
objects:
- apiVersion: v1
kind: ImageStream
metadata:
name: dotnet-21-rhel7
labels:
shared: "true"
spec:
lookupPolicy:
local: false
tags:
- annotations: null
from:
kind: DockerImage
name: registry.redhat.io/dotnet/dotnet-21-rhel7:2.1-41
name: "2.1-41"
referencePolicy:
type: Local
- apiVersion: v1
kind: ImageStream
metadata:
name: postgresql-10-rhel8
labels:
shared: "true"
spec:
lookupPolicy:
local: false
tags:
- annotations: null
from:
kind: DockerImage
name: registry.redhat.io/rhel8/postgresql-10
name: "1"
referencePolicy:
type: Local
- kind: ImageStream
apiVersion: v1
metadata:
labels:
shared: "true"
name: "${NAME}"
- kind: BuildConfig
apiVersion: v1
metadata:
creationTimestamp: null
labels:
build: ${NAME}${SUFFIX}
name: ${NAME}${SUFFIX}
spec:
nodeSelector: null
completionDeadlineSeconds: 600
output:
to:
kind: ImageStreamTag
name: ${NAME}:${VERSION}
resources:
limits:
cpu: 2
memory: 4Gi
requests:
cpu: 1
memory: 2Gi
postCommit: {}
source:
type: Git
git:
uri: ${SOURCE_REPOSITORY_URL}
ref: ${SOURCE_REPOSITORY_REF}
contextDir: "${SOURCE_CONTEXT_DIR}"
strategy:
type: Source
sourceStrategy:
env:
- name: DOTNET_STARTUP_PROJECT
value: "${DOTNET_STARTUP_PROJECT}"
from:
kind: ImageStreamTag
name: dotnet-21-rhel7:2.1-41
parameters:
- description: Name of the project (HETS)
displayName: PROJECT_NAME
name: PROJECT_NAME
required: true
value: "het"
- name: NAME
displayName: Name
description: The name assigned to all of the resources defined in this template.
required: true
value: api
- description: A name suffix used for all objects
displayName: Suffix
name: SUFFIX
required: false
value: "-dev"
- description: A version used for the image tags
displayName: version
name: VERSION
required: false
value: "1.9.3"
- description: SOURCE_REPOSITORY_URL
displayName: SOURCE_REPOSITORY_URL
name: SOURCE_REPOSITORY_URL
required: false
value: "https://github.com/bcgov/hets.git"
- description: SOURCE_REPOSITORY_REF
displayName: SOURCE_REPOSITORY_REF
name: SOURCE_REPOSITORY_REF
required: false
value: "master"
- name: SOURCE_CONTEXT_DIR
displayName: Source Context Directory
description: The source context directory.
required: false
value: 'Server'
- name: SOURCE_IMAGE_KIND
displayName: Source Image Kind
description: The 'kind' (type) of the source image; typically ImageStreamTag, or
DockerImage.
required: true
value: DockerImage
- name: DOTNET_STARTUP_PROJECT
displayName: DotNet Startup Project
description: The path to the startup project for the .Net application.
required: true
value: HetsApi/HetsApi.csproj