dockerBuild fixes: login before build
This commit is contained in:
parent
fe429b1a61
commit
484fa2004f
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env groovy
|
#!/usr/bin/env groovy
|
||||||
|
|
||||||
def call() {
|
def call() {
|
||||||
sh 'docker-compose build --parallel'
|
|
||||||
sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY'
|
sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY'
|
||||||
|
sh 'docker-compose build --parallel'
|
||||||
sh 'docker-compose push'
|
sh 'docker-compose push'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue