Update 'Jenkinsfile'
This commit is contained in:
parent
bba38e35d9
commit
c707176825
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -34,9 +34,12 @@ pipeline{
|
|||||||
export WORKSPACE=$(realpath "./jenkins/workspace/ci-image")
|
export WORKSPACE=$(realpath "./jenkins/workspace/ci-image")
|
||||||
cd $WORKSPACE
|
cd $WORKSPACE
|
||||||
docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
|
docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
|
||||||
|
for arch in linux/arm/v7 linux/arm64/v8 linux/amd64 ; do
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
|
--platform $arch \
|
||||||
--tag xsangle/ci-tools:latest .
|
--output "type=docker,push=false,name=xsangle/ci-tools:latest-$arch" \
|
||||||
|
.
|
||||||
|
done
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user