summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorRunar Borge <runar@borge.nu>2020-07-09 23:09:21 +0200
committerRunar Borge <runar@borge.nu>2020-07-14 12:30:40 +0200
commit60d36ca64f43167595077edff287d7ef29eb3b60 (patch)
treee2f299171d349cf634152031f4de9b4b02d94397 /Jenkinsfile
parentc7b0a8897cfa8573993f593fc2ed61e981a745a0 (diff)
downloadvyos-build-60d36ca64f43167595077edff287d7ef29eb3b60.tar.gz
vyos-build-60d36ca64f43167595077edff287d7ef29eb3b60.zip
T1927: arm: Readd CI build of emulated ARM64 container
After a successfull CI build of this container it is considered working and is possible to add back to the build as a standard target. The container is changed so it handles an architecture change without changing the dockerfile
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile43
1 files changed, 18 insertions, 25 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index c2ec90a..17f0ca5 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}"
+
+ }
+ }
+ }
+ }
+ }
)
}
}