Hopefully fix docker complaining about nonsense
Some checks failed
ecodash/pipeline/head There was a failure building this commit
Some checks failed
ecodash/pipeline/head There was a failure building this commit
This commit is contained in:
parent
ad89006cc4
commit
8db3f56ca4
11
jenkins/Jenkinsfile
vendored
11
jenkins/Jenkinsfile
vendored
|
@ -29,11 +29,7 @@ pipeline {
|
||||||
stage('Prepare buildx') {
|
stage('Prepare buildx') {
|
||||||
steps {
|
steps {
|
||||||
sh """
|
sh """
|
||||||
docker run --privileged --rm tonistiigi/binfmt --install all
|
docker buildx create --name $BUILDER_NAME
|
||||||
|
|
||||||
docker context create $BUILDER_NAME
|
|
||||||
docker context use $BUILDER_NAME
|
|
||||||
docker buildx create $BUILDER_NAME
|
|
||||||
docker buildx use $BUILDER_NAME
|
docker buildx use $BUILDER_NAME
|
||||||
docker buildx inspect --bootstrap
|
docker buildx inspect --bootstrap
|
||||||
"""
|
"""
|
||||||
|
@ -77,10 +73,7 @@ pipeline {
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
// cleanup
|
// cleanup
|
||||||
sh """
|
sh 'docker buildx rm $BUILDER_NAME'
|
||||||
docker context rm -f $BUILDER_NAME
|
|
||||||
docker buildx use default
|
|
||||||
"""
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue