Skip to content

Commit

Permalink
Merge pull request #93 from slide/master
Browse files Browse the repository at this point in the history
Only publish on master
  • Loading branch information
slide authored Oct 23, 2019
2 parents b559772 + 364af8b commit dde4b44
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,15 @@ pipeline {
}
steps {
script {
// we can't use dockerhub builds for windows
// so we publish here
infra.withDockerCredentials {
powershell '& ./make.ps1 publish'
powershell '& ./make.ps1 build'

def branchName = "${env.BRANCH_NAME}"
if (branchName ==~ 'master') {
// we can't use dockerhub builds for windows
// so we publish here
infra.withDockerCredentials {
powershell '& ./make.ps1 publish'
}
}

// cleanup any docker images
Expand Down

0 comments on commit dde4b44

Please sign in to comment.