Skip to content

Commit a22ea90

Browse files
committed
adding a build process to the repository
1 parent dbf3b7e commit a22ea90

File tree

12 files changed

+1312
-2
lines changed

12 files changed

+1312
-2
lines changed

.tekton/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Tekton Build
2+
3+
The contents of this folder control how the repository is built.
4+
5+
For those with permissions to access IBM internal systems only.
6+
7+
## The main branch build
8+
[![build-badge](https://javadev-cicsk8s.hursley.ibm.com/samples-cics-java-liberty-springboot-jcics/main/build-info/build-status-badge.svg)](
9+
https://javadev-cicsk8s.hursley.ibm.com/samples-cics-java-liberty-springboot-jcics/main/)
10+
11+
- [Build logs](https://javadev-cicsk8s.hursley.ibm.com/samples-cics-java-liberty-springboot-jcics/main/build-info/logs/)
12+
- [Built artifacts](https://javadev-cicsk8s.hursley.ibm.com/samples-cics-java-liberty-springboot-jcics/main/artifacts/)

.tekton/helm/Chart.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: v2
2+
name: cics-samples-built-artifact-server
3+
description: CICS Samples built artifact archives
4+
type: application
5+
version: 0.1.0
6+
appVersion: "0.1.0"
7+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: {{ .Values.argoAppName }}
5+
labels:
6+
app: {{ .Values.argoAppName }}
7+
spec:
8+
replicas: 1
9+
revisionHistoryLimit: 0
10+
selector:
11+
matchLabels:
12+
app: {{ .Values.argoAppName }}
13+
template:
14+
metadata:
15+
labels:
16+
app: {{ .Values.argoAppName }}
17+
spec:
18+
nodeSelector:
19+
kubernetes.io/arch: amd64
20+
containers:
21+
- name: {{ .Values.argoAppName }}
22+
image: {{ .Values.containerRegistry }}/{{ .Values.dockerImageName }}:{{ .Values.containerImageTag }}
23+
imagePullPolicy: Always
24+
env:
25+
- name: CONTEXTROOT
26+
value: {{ .Values.baseUrlPath }}/{{ .Values.containerImageTag }}
27+
ports:
28+
- name: http
29+
containerPort: 80
30+
protocol: TCP
31+
resources:
32+
requests:
33+
memory: 50Mi
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
kind: Ingress
2+
apiVersion: networking.k8s.io/v1
3+
metadata:
4+
name: {{ .Values.argoAppName }}
5+
annotations:
6+
nginx.ingress.kubernetes.io/ssl-redirect: "false"
7+
spec:
8+
ingressClassName: nginx
9+
tls:
10+
- hosts:
11+
- javadev-cicsk8s.hursley.ibm.com
12+
secretName: javadev-cert
13+
rules:
14+
- host: javadev-cicsk8s.hursley.ibm.com
15+
http:
16+
paths:
17+
- backend:
18+
service:
19+
name: {{ .Values.argoAppName }}
20+
port:
21+
number: 80
22+
path: /{{ .Values.baseUrlPath }}/{{ .Values.containerImageTag }}
23+
pathType: Prefix
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: {{ .Values.argoAppName }}
5+
labels:
6+
app: {{ .Values.argoAppName }}
7+
spec:
8+
type: ClusterIP
9+
selector:
10+
app: {{ .Values.argoAppName }}
11+
ports:
12+
- port: 80
13+
targetPort: 80
14+
protocol: TCP

0 commit comments

Comments
 (0)