Skip to content

Commit 24d386c

Browse files
committed
git checkout
1 parent 0689816 commit 24d386c

4 files changed

Lines changed: 48 additions & 107 deletions

File tree

Jenkinsfile

Lines changed: 0 additions & 107 deletions
This file was deleted.

deployments.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
kind: Deployment
2+
apiVersion: apps/v1
3+
metadata:
4+
name: mydeployment
5+
spec:
6+
replicas: 2
7+
selector:
8+
mathLabels:
9+
app: myspringbootapp
10+
template:
11+
metadata:
12+
labels:
13+
app: myspringbootapp
14+
spec:
15+
containers:
16+
- name: myspringbootapp
17+
image: vikashashoke/mydemoapplication:latest
18+
imagePullPolicy: Always
19+
ports:
20+
- containerPort: 9099

jenkins-cd

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
pipeline {
2+
3+
agent any
4+
5+
stages{
6+
7+
stage('git checkout'){
8+
9+
steps{
10+
git branch: 'main', url: 'https://github.com/vikash-kumar01/demo-counter-app.git'
11+
}
12+
}
13+
}
14+
}

service.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
kind: kind: Service
2+
apiVersion: v1
3+
metadata:
4+
name: myservice
5+
label:
6+
app: myspringbootapp
7+
spec:
8+
selector:
9+
app: myspringbootapp
10+
type: LoadBalancer
11+
ports:
12+
- nodePort: 30036
13+
port: 80
14+
targetPort: 9099

0 commit comments

Comments
 (0)