Skip to content

Commit

Permalink
push to Docker from Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Selmouni-Abdelilah committed Feb 23, 2024
1 parent 66634fa commit 69a6b71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pipeline{
}
stage('Build Docker Image') {
steps{
sh 'docker build -t jenkinsci:$BUILD_NUMBER .'
sh 'docker build -t abdelilahone/jenkinsci:$BUILD_NUMBER .'
}
}
stage('Login to Docker Hub') {
Expand All @@ -71,7 +71,7 @@ pipeline{
}
stage('Push Image to Docker Hub') {
steps{
sh 'docker push jenkinsci:$BUILD_NUMBER'
sh 'docker push abdelilahone/jenkinsci:$BUILD_NUMBER'
}
}

Expand Down

0 comments on commit 69a6b71

Please sign in to comment.