Mise à jour de 'Jenkinsfile'

This commit is contained in:
dany 2022-08-07 00:18:24 +02:00
parent ee8f3adf45
commit 15676a5558

7
Jenkinsfile vendored
View File

@ -38,12 +38,13 @@ pipeline{
docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
for arch in arm arm64 amd64 linux/386; do
echo "build for architecture $arch"
arch_name="${arch//\//-}"
docker buildx build \
--platform $arch \
--output "type=docker,push=false,name=xsangle/ci-tools:latest-${arch//\//-}" \
--output "type=docker,push=false,name=xsangle/ci-tools:latest-$arch_name" \
.
docker tag xsangle/ci-tools:latest-$arch workstation:5000/xsangle/ci-tools:latest-$arch
docker push workstation:5000/xsangle/ci-tools:latest-$arch
docker tag xsangle/ci-tools:latest-$arch_name workstation:5000/xsangle/ci-tools:latest-$arch_name
docker push workstation:5000/xsangle/ci-tools:latest-$arch_name
done
'''
}