Update 'Jenkinsfile'

This commit is contained in:
dany 2022-09-16 16:40:43 +02:00
parent b138210a18
commit 04cf6d2bc2

35
Jenkinsfile vendored
View File

@ -30,7 +30,7 @@ pipeline{
} }
stages stages
{ {
stage('Build latest') { stage('Build all') {
steps { steps {
sshCommand remote: remote, command: ''' sshCommand remote: remote, command: '''
set -e set -e
@ -41,30 +41,15 @@ pipeline{
cp /var/jenkins_home/workspace/nightly-antosaio/build/* antos -rf cp /var/jenkins_home/workspace/nightly-antosaio/build/* antos -rf
tree antos tree antos
docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64 docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
docker buildx build \ for dir in antos/* ; do
--push \ tag=$(basename $dir)
--build-arg tag=latest \ echo "BUILD TAG $tag"
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \ docker buildx build \
--tag xsangle/antosaio:latest . --push \
''' --build-arg tag=$tag \
} --platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
} --tag xsangle/antosaio:$tag .
stage('Build devel') { done
steps {
sshCommand remote: remote, command: '''
set -e
export WORKSPACE=$(realpath "./jenkins/workspace/antosaio-docker")
cd $WORKSPACE
[ -d antos ] && rm -rf antos
mkdir antos
cp /var/jenkins_home/workspace/nightly-antosaio/build/* antos -rf
tree antos
docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
docker buildx build \
--push \
--build-arg tag=devel \
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
--tag xsangle/antosaio:devel .
''' '''
} }
} }