Merge pull request #27 from BrokenFire/devel

Devel
This commit is contained in:
Sébastien Clément 2018-03-01 20:03:10 +01:00 committed by GitHub
commit ad5dc72f76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
Jenkinsfile vendored
View File

@ -32,7 +32,8 @@ node {
* First, the incremental build number from Jenkins * First, the incremental build number from Jenkins
* Second, the 'latest' tag. * Second, the 'latest' tag.
* Pushing multiple tags is cheap, as all the layers are reused. */ * Pushing multiple tags is cheap, as all the layers are reused. */
def docker_tag withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'docker-hub-credentials', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) {
sh 'docker login -u $USERNAME -p $PASSWORD'
script { script {
if (env.BRANCH_NAME == 'master') { if (env.BRANCH_NAME == 'master') {
app.push() app.push()
@ -40,6 +41,8 @@ node {
app.push("devel") app.push("devel")
} }
} }
}
} }