From f5f85853bb67e8c4b5d865a8d9f8026fcea6d6de Mon Sep 17 00:00:00 2001 From: Christopher Hubing Date: Fri, 29 Sep 2023 11:58:07 -0400 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 768a8d8..9c86de0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -79,14 +79,14 @@ pipeline { //builds.each{ k, v -> echo ("push ${k}") } //for local testing // builds.each{ k, v -> v.push(k) } <- not used anymore + // the following command needs to be run first on a new node, but not after that + sh 'docker buildx create --use --name multiarch --append' EXERCISE_FOLDERS.each { exercise, folder -> // old non multi-arch way // def build = docker.build("${maintainer}/${imagename}:${exercise}-${tag}", "--no-cache --pull --build-arg VERSION_TAG=${tag} ${folder}") // build.push("${exercise}-${tag}") // switch to buildx, which is not supported by the jenkins docker plugin - // the following command needs to be run first on a new node, but not after that - // sh 'docker buildx create --use --name multiarch --append' sh 'docker buildx inspect --bootstrap' sh 'docker buildx ls' sh 'docker login -u tieradmin -p $DOCKERHUBPW'