Update 'Jenkinsfile'

This commit is contained in:
dany 2022-08-02 14:47:39 +02:00
parent bba38e35d9
commit c707176825

9
Jenkinsfile vendored
View File

@ -34,9 +34,12 @@ pipeline{
export WORKSPACE=$(realpath "./jenkins/workspace/ci-image")
cd $WORKSPACE
docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
docker buildx build \
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
--tag xsangle/ci-tools:latest .
for arch in linux/arm/v7 linux/arm64/v8 linux/amd64 ; do
docker buildx build \
--platform $arch \
--output "type=docker,push=false,name=xsangle/ci-tools:latest-$arch" \
.
done
'''
}
}