Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellal1997 committed Aug 10, 2024
1 parent 846fddb commit ccba962
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ pipeline {
stage('Build Docker Image') {
steps {
script {
def imageName = "mohamedhellal22/jenkins-depi"
def imageTag = "${params.IMAGE_TAG}"
def imageName = "mohamedhellal/jenkins/jenkins"
def imageTag = "${params.latest}"

// Build Docker image
docker.build("${imageName}:${imageTag}", "-f Dockerfile .")
Expand All @@ -30,7 +30,7 @@ pipeline {
steps {
script {
docker.withRegistry('https://index.docker.io/v1/', 'docker-hub-credentials') {
docker.image("mohamedhellal22/jenkins-depi:${params.IMAGE_TAG}").push("${params.IMAGE_TAG}")
docker.image("mohamedhellal/jenkins/jenkins:${params.latest}").push("${params.latest}")
}
}
}
Expand Down

0 comments on commit ccba962

Please sign in to comment.