Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWyss committed Mar 25, 2023
1 parent b78d168 commit d4cc345
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ pipeline {
}
stage('Build and publish docker image') {
steps {
def dockerImage = docker.build("alexanderwyss/discord-bot-node", "-f DockerfileJenkins .")
docker.withRegistry('https://registry.hub.docker.com', 'docker-hub-credentials') {
dockerImage.push(BUILD_NUMBER)
dockerImage.push("latest")
script {
def dockerImage = docker.build("alexanderwyss/discord-bot-node", "-f DockerfileJenkins .")
docker.withRegistry('https://registry.hub.docker.com', 'docker-hub-credentials') {
dockerImage.push(BUILD_NUMBER)
dockerImage.push("latest")
}
}
}
}
Expand Down

0 comments on commit d4cc345

Please sign in to comment.