diff options
-rw-r--r-- | Jenkinsfile | 102 |
1 files changed, 51 insertions, 51 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index 0d5cd65c..c9828852 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -86,61 +86,61 @@ node('Docker') { stage('Build Docker container') { parallel ( 'x86-64': { - script { - dir('docker') { - sh """ - mkdir -p x86-64 - cp Dockerfile x86-64/Dockerfile - cp entrypoint.sh x86-64/entrypoint.sh - - docker build -t ${env.DOCKER_IMAGE} x86-64 - """ - if ( ! isCustomBuild()) { - withDockerRegistry([credentialsId: "DockerHub"]) { - sh "docker push ${env.DOCKER_IMAGE}" - } - - } - } - } - }, - 'armhf': { - script { - dir('docker') { - sh """ - cp Dockerfile armhf/Dockerfile - cp entrypoint.sh armhf/entrypoint.sh - sed -i 's#^FROM.*#FROM multiarch/debian-debootstrap:armhf-buster-slim#' armhf/Dockerfile - docker build -t ${env.DOCKER_IMAGE_ARM} armhf - """ - if ( ! isCustomBuild()) { - withDockerRegistry([credentialsId: "DockerHub"]) { - sh "docker push ${env.DOCKER_IMAGE_ARM}" - } + script { + dir('docker') { + sh """ + mkdir -p x86-64 + cp Dockerfile x86-64/Dockerfile + cp entrypoint.sh x86-64/entrypoint.sh + + docker build -t ${env.DOCKER_IMAGE} x86-64 + """ + if ( ! isCustomBuild()) { + withDockerRegistry([credentialsId: "DockerHub"]) { + sh "docker push ${env.DOCKER_IMAGE}" } + } } + } }, - 'arm64': { - script { - dir('docker') { - sh """ - cp Dockerfile arm64/Dockerfile - cp entrypoint.sh arm64/entrypoint.sh - sed -i 's#^FROM.*#FROM multiarch/debian-debootstrap:arm64-buster-slim#' arm64/Dockerfile - docker build -t ${env.DOCKER_IMAGE_ARM64} arm64 - - """ - - if ( ! isCustomBuild()) { - withDockerRegistry([credentialsId: "DockerHub"]) { - sh "docker push ${env.DOCKER_IMAGE_ARM64}" - - } - } - } - } - } +// 'armhf': { +// script { +// dir('docker') { +// sh """ +// cp Dockerfile armhf/Dockerfile +// cp entrypoint.sh armhf/entrypoint.sh +// sed -i 's#^FROM.*#FROM multiarch/debian-debootstrap:armhf-buster-slim#' armhf/Dockerfile +// docker build -t ${env.DOCKER_IMAGE_ARM} armhf +// """ +// if ( ! isCustomBuild()) { +// withDockerRegistry([credentialsId: "DockerHub"]) { +// sh "docker push ${env.DOCKER_IMAGE_ARM}" +// } +// } +// } +// } +// }, +// 'arm64': { +// script { +// dir('docker') { +// sh """ +// cp Dockerfile arm64/Dockerfile +// cp entrypoint.sh arm64/entrypoint.sh +// sed -i 's#^FROM.*#FROM multiarch/debian-debootstrap:arm64-buster-slim#' arm64/Dockerfile +// docker build -t ${env.DOCKER_IMAGE_ARM64} arm64 +// +// """ +// +// if ( ! isCustomBuild()) { +// withDockerRegistry([credentialsId: "DockerHub"]) { +// sh "docker push ${env.DOCKER_IMAGE_ARM64}" +// +// } +// } +// } +// } +// } ) } } |