Mise à jour de 'Jenkinsfile'
This commit is contained in:
parent
f0ea35c768
commit
ee8f3adf45
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -31,15 +31,16 @@ pipeline{
|
||||
steps {
|
||||
sshCommand remote: remote, command: '''
|
||||
set -e
|
||||
set -x
|
||||
export WORKSPACE=$(realpath "./jenkins/workspace/ci-image")
|
||||
cd $WORKSPACE
|
||||
# docker rmi -f $(docker images -f "dangling=true" -q)
|
||||
docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
|
||||
for arch in arm arm64 amd64 386; do
|
||||
for arch in arm arm64 amd64 linux/386; do
|
||||
echo "build for architecture $arch"
|
||||
docker buildx build \
|
||||
--platform $arch \
|
||||
--output "type=docker,push=false,name=xsangle/ci-tools:latest-$arch" \
|
||||
--output "type=docker,push=false,name=xsangle/ci-tools:latest-${arch//\//-}" \
|
||||
.
|
||||
docker tag xsangle/ci-tools:latest-$arch workstation:5000/xsangle/ci-tools:latest-$arch
|
||||
docker push workstation:5000/xsangle/ci-tools:latest-$arch
|
||||
|
Loading…
Reference in New Issue
Block a user