From 484fa2004fed192d08c2b516aab40f11cb6d9b82 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Mon, 20 Jun 2022 21:46:45 +0200 Subject: [PATCH] dockerBuild fixes: login before build --- vars/dockerBuild.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/dockerBuild.groovy b/vars/dockerBuild.groovy index 01ccac5..a4f53db 100644 --- a/vars/dockerBuild.groovy +++ b/vars/dockerBuild.groovy @@ -1,7 +1,7 @@ #!/usr/bin/env groovy def call() { - sh 'docker-compose build --parallel' sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY' + sh 'docker-compose build --parallel' sh 'docker-compose push' }