Update Jenkinsfile

This commit is contained in:
surtexx 2023-11-13 16:28:20 +02:00 committed by GitHub
parent 52c451ff49
commit 40771c0005
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

4
Jenkinsfile vendored
View file

@ -12,7 +12,7 @@ pipeline{
stage ("Build Docker Image") {
steps {
script{
app = docker.build("surtexx/mr:${GIT_COMMIT}", "-f Dockerfile1 .")
app = docker.build("surtexx/mr:${GIT_COMMIT[0..7]}", "-f Dockerfile1 .")
app.inside{
sh 'echo $(wget localhost:8080)'
}
@ -23,7 +23,7 @@ pipeline{
steps {
script{
docker.withRegistry('https://registry.hub.docker.com', 'docker_hub_login') {
app.push(${GIT_COMMIT})
app.push("${GIT_COMMIT[0..7]})
app.push("latest")
}
}