mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:55:49 +00:00
added dockerfile
This commit is contained in:
parent
eaacf6829a
commit
6e4c940cd2
2 changed files with 4 additions and 4 deletions
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
@ -12,7 +12,7 @@ pipeline{
|
||||||
}
|
}
|
||||||
stage('artifact build'){
|
stage('artifact build'){
|
||||||
steps{
|
steps{
|
||||||
sh 'docker image build -t sridhar006 .'
|
sh 'docker image build -t spc-mvn:3.9.4 .'
|
||||||
sh 'docker image list'
|
sh 'docker image list'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,8 +27,8 @@ pipeline{
|
||||||
stage('docker push image '){
|
stage('docker push image '){
|
||||||
steps{
|
steps{
|
||||||
sh 'docker image build -t spc123 .'
|
sh 'docker image build -t spc123 .'
|
||||||
sh 'docker image tag spc123 sridhar006/spc-jenkins:${BUILD_ID}'
|
sh 'docker image tag spc123 sridhar006/spc-mvn:3.9.4:${BUILD_ID}'
|
||||||
sh 'docker push sridhar006/spc-jenkins:${BUILD_ID}'
|
sh 'docker push sridhar006/spc-mvn:3.9.4:${BUILD_ID}'
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: nop
|
- name: nop
|
||||||
image: spc-jenkins
|
image: spc-mvn:3.9.4:${BUILD_ID}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue