Skip to content

Commit

Permalink
chore: remove docker push (#111)
Browse files Browse the repository at this point in the history
Co-authored-by: chuhanjin <419436363@qq.com>
  • Loading branch information
ChuhanJin and JJVincentJJ authored May 30, 2022
1 parent 9b99f2e commit 35f6a91
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,15 @@ pipeline {

stage('Build image') {
app = docker.build("${env.DOCKER_CREDENTIALS_USR}/l2geth-img")
}

stage('Push image') {
// Use the Credential ID of the Docker Hub Credentials we added to Jenkins.
docker.withRegistry('https://registry.hub.docker.com', 'dockerhub') {
// Push image and tag it with our build number for versioning purposes.
app.push("${env.BUILD_NUMBER}")

// Push the same image and tag it as the latest version (appears at the top of our version list).
app.push("latest")
}
}
}
}
}
}
}
}
post {
always {
cleanWs()
}
}
}

0 comments on commit 35f6a91

Please sign in to comment.