summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-07-14 22:47:36 +0200
committerGitHub <noreply@github.com>2020-07-14 22:47:36 +0200
commita09a7e4338d8c9ce78f6166469524bfa0b01af93 (patch)
treee2f299171d349cf634152031f4de9b4b02d94397 /Jenkinsfile
parentc7b0a8897cfa8573993f593fc2ed61e981a745a0 (diff)
parent60d36ca64f43167595077edff287d7ef29eb3b60 (diff)
downloadvyos-build-a09a7e4338d8c9ce78f6166469524bfa0b01af93.tar.gz
vyos-build-a09a7e4338d8c9ce78f6166469524bfa0b01af93.zip
Merge pull request #114 from runborg/T1927
T1927: arm: Readd CI build of emulated ARM64 container
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile43
1 files changed, 18 insertions, 25 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index c2ec90a5..17f0ca51 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -49,11 +49,7 @@ node('Docker') {
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
+ docker build -t ${env.DOCKER_IMAGE} .
"""
if ( ! isCustomBuild()) {
withDockerRegistry([credentialsId: "DockerHub"]) {
@@ -81,26 +77,23 @@ node('Docker') {
// }
// }
// },
-// '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}"
-//
-// }
-// }
-// }
-// }
-// }
+ 'arm64': {
+ script {
+ dir('docker') {
+ sh """
+ docker build -t ${env.DOCKER_IMAGE_ARM64} --build-arg ARCH=arm64v8/ .
+
+ """
+
+ if ( ! isCustomBuild()) {
+ withDockerRegistry([credentialsId: "DockerHub"]) {
+ sh "docker push ${env.DOCKER_IMAGE_ARM64}"
+
+ }
+ }
+ }
+ }
+ }
)
}
}