Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
chubing authored Sep 29, 2023
1 parent d218ddf commit f5f8585
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit f5f8585

Please sign in to comment.