jenkins-util/vars/dockerBuild.groovy

8 lines
196 B
Groovy

#!/usr/bin/env groovy
def call() {
sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY'
sh 'docker-compose build --parallel'
sh 'docker-compose push'
}