Update 'Jenkinsfile'
This commit is contained in:
parent
bba38e35d9
commit
c707176825
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@ -33,10 +33,13 @@ pipeline{
|
||||
set -e
|
||||
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 .
|
||||
docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
|
||||
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