Skip to content

Commit

Permalink
PR #335
Browse files Browse the repository at this point in the history
  • Loading branch information
vfarcic committed Sep 25, 2017
1 parent 36faef8 commit 0fe247f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ pipeline {
currentBuild.displayName = dateFormat.format(new Date()) + "-" + env.BUILD_NUMBER
}
dfBuild("docker-flow-proxy")
sh "docker image build -t vfarcic/docker-flow-proxy:${currentBuild.displayName}-packet-beat -f Dockerfile.packetbeat ."
sh "docker image build -t vfarcic/docker-flow-proxy:latest-packet-beat -f Dockerfile.packetbeat ."
sh "docker image tag vfarcic/docker-flow-proxy:latest-packet-beat vfarcic/docker-flow-proxy:${currentBuild.displayName}-packet-beat"
}
}
stage("staging") {
Expand All @@ -38,6 +39,7 @@ pipeline {
steps {
dfRelease("docker-flow-proxy")
dockerLogin()
sh "docker image push vfarcic/docker-flow-proxy:latest-packet-beat"
sh "docker image push vfarcic/docker-flow-proxy:${currentBuild.displayName}-packet-beat"
dockerLogout()
}
Expand Down

0 comments on commit 0fe247f

Please sign in to comment.