Add Jenkinsfile

This commit is contained in:
2025-12-18 04:25:27 +00:00
parent a29c456dcd
commit 592fd9cd78

17
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,17 @@
pipeline {
agent any
stages {
stage('Build Docker Image') {
steps {
sh 'docker build -t localhost:5000/demo-app:${BUILD_NUMBER} .'
}
}
stage('Push Image to Registry') {
steps {
sh 'docker push localhost:5000/demo-app:${BUILD_NUMBER}'
}
}
}
}