Hopefully fix docker complaining about nonsense

This commit is contained in:
MassiveBox 2023-07-22 11:14:54 +02:00
parent ad89006cc4
commit 8db3f56ca4
No known key found for this signature in database
GPG Key ID: 9B74D3A59181947D
1 changed files with 2 additions and 9 deletions

11
jenkins/Jenkinsfile vendored
View File

@ -29,11 +29,7 @@ pipeline {
stage('Prepare buildx') {
steps {
sh """
docker run --privileged --rm tonistiigi/binfmt --install all
docker context create $BUILDER_NAME
docker context use $BUILDER_NAME
docker buildx create $BUILDER_NAME
docker buildx create --name $BUILDER_NAME
docker buildx use $BUILDER_NAME
docker buildx inspect --bootstrap
"""
@ -77,10 +73,7 @@ pipeline {
post {
always {
// cleanup
sh """
docker context rm -f $BUILDER_NAME
docker buildx use default
"""
sh 'docker buildx rm $BUILDER_NAME'
}
}