Update Jenkinsfile
All checks were successful
gitea-sync/ci-image/pipeline/head This commit looks good
All checks were successful
gitea-sync/ci-image/pipeline/head This commit looks good
This commit is contained in:
parent
4ad5017062
commit
053ea0f0d9
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@ -24,18 +24,10 @@ pipeline{
|
|||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
cd $WORKSPACE
|
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 \
|
docker buildx build \
|
||||||
--platform $arch \
|
--platform amd64 \
|
||||||
--output "type=docker,push=false,name=xsangle/ci-tools:latest-$arch_name" \
|
--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
|
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user