Update Jenkinsfile
All checks were successful
gitea-sync/ci-image/pipeline/head This commit looks good

This commit is contained in:
dany 2024-03-10 15:35:36 +01:00
parent 4ad5017062
commit 053ea0f0d9

12
Jenkinsfile vendored
View File

@ -24,18 +24,10 @@ pipeline{
set -e
set -x
cd $WORKSPACE
# docker rmi -f $(docker images -f "dangling=true" -q)
# docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
for arch in arm arm64 amd64; 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_name" \
--platform amd64 \
--output "type=docker,push=false,name=xsangle/ci-tools:latest" \
.
# 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
'''
}
}