diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..368b392 --- /dev/null +++ b/Jenkinsfile @@ -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}' + } + } + } +}