Update Jenkinsfile

This commit is contained in:
Oleksandr Butenko 2021-06-13 12:56:29 +03:00 committed by GitHub
parent 4b31d59b1f
commit 6c2eb1b73e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

15
Jenkinsfile vendored
View file

@ -19,5 +19,18 @@ pipeline {
} }
} }
} }
} stage('Push Docker Image') {
when {
branch 'main'
}
steps {
script {
docker.withRegistry('https://registry.hub.docker.com', 'docker_hub_login') {
app.push("${env.BUILD_NUMBER}")
app.push("latest")
}
}
}
}
} }
}