Update 'Jenkinsfile'
This commit is contained in:
parent
bba38e35d9
commit
c707176825
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -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
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user