@@ -37,10 +37,10 @@ pipeline {
3737 }
3838 stage(' Ubuntu16.04 armv7l' ) {
3939 agent {
40- label " docker &&linux&&armv7l "
40+ label " dockerBuild &&linux&&aarch64 "
4141 }
4242 steps {
43- dockerBuild (' armv7l' , ' ubuntu1604' , ' Dockerfile.Ubuntu1604' )
43+ dockerBuildArm32 (' armv7l' , ' ubuntu1604' , ' Dockerfile.Ubuntu1604' )
4444 }
4545 }
4646 stage(' Ubuntu20.04 riscv64' ) {
@@ -97,6 +97,22 @@ pipeline {
9797 }
9898}
9999
100+ def dockerBuildArm32 (architecture , distro , dockerfile ) {
101+ sh " rm -vf *.sha256"
102+ git poll : false , url : ' https://github.com/adoptium/infrastructure.git'
103+ def git_sha = " ${ env.GIT_COMMIT.trim()} "
104+ docker. withRegistry(' https://ghcr.io' , ' ghcr-adoptium' ) {
105+ sh """
106+ docker buildx build --platform linux/arm/v7 \
107+ --build-arg git_sha=$git_sha --build-arg ansible_arch=$architecture \
108+ -f ansible/docker/$dockerfile \
109+ -t ghcr.io/adoptium/adoptium_build_image:${ distro} _linux-$architecture --push .
110+ docker inspect --format='{{index .RepoDigests 0}}' ghcr.io/adoptium/adoptium_build_image:${ distro} _linux-${ architecture} > ${ distro} _linux-${ architecture} .sha256
111+ """
112+ archiveArtifacts artifacts : ' *linux*.sha256' , fingerprint : true
113+ }
114+ }
115+
100116def dockerBuild (architecture , distro , dockerfile ) {
101117 sh " rm -vf *.sha256"
102118 git poll : false , url : ' https://github.com/adoptium/infrastructure.git'
0 commit comments