Update 'Jenkinsfile'

This commit is contained in:
dany 2022-09-16 13:39:50 +02:00
parent 9d7d225413
commit 7a213ffbd5

22
Jenkinsfile vendored
View File

@ -30,7 +30,7 @@ pipeline{
} }
stages stages
{ {
stage('Build') { stage('Build latest') {
steps { steps {
sshCommand remote: remote, command: ''' sshCommand remote: remote, command: '''
set -e set -e
@ -43,10 +43,30 @@ pipeline{
docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64 docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
docker buildx build \ docker buildx build \
--push \ --push \
--build-arg tag=latest \
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \ --platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
--tag xsangle/antosaio:latest . --tag xsangle/antosaio:latest .
''' '''
} }
} }
stage('Build devel') {
steps {
sshCommand remote: remote, command: '''
set -e
export WORKSPACE=$(realpath "./jenkins/workspace/antosaio-docker")
cd $WORKSPACE
[ -d antos ] && rm 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 .
'''
}
}
} }
} }