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'