Update Jenkinsfile
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -4,13 +4,13 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Build Docker Image') {
|
stage('Build Docker Image') {
|
||||||
steps {
|
steps {
|
||||||
sh 'docker build -t localhost:5000/demo-app:${BUILD_NUMBER} .'
|
sh 'docker build -t 192.168.1.80:5000/demo-app:${BUILD_NUMBER} .'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Push Image to Registry') {
|
stage('Push Image to Registry') {
|
||||||
steps {
|
steps {
|
||||||
sh 'docker push localhost:5000/demo-app:${BUILD_NUMBER}'
|
sh 'docker push 192.168.1.80:5000/demo-app:${BUILD_NUMBER}'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user