osmith has uploaded this change for review.
jobs/registry-rebuild-upload-arm: new job
Add a separate job for building and uploading the arm image, so we can
fetch the related base image and run it on a specific arm machine (lx2).
As mentioned in the previous commit message, this is a lot more
efficient than building this image over and over on all raspberry pis.
Related: OS#7117
Change-Id: I66614406c3be68fdc5773a34617b7154e497ebdf
---
A jobs/registry-rebuild-upload-arm.yml
1 file changed, 45 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/54/44054/1
diff --git a/jobs/registry-rebuild-upload-arm.yml b/jobs/registry-rebuild-upload-arm.yml
new file mode 100644
index 0000000..a032a8d
--- /dev/null
+++ b/jobs/registry-rebuild-upload-arm.yml
@@ -0,0 +1,45 @@
+- project:
+ name: registry-rebuild-upload
+ jobs:
+ - "{job-name}"
+ job-name:
+ - registry-rebuild-upload-trixie-build-arm:
+ image: "debian-trixie-build-arm"
+ base: "arm32v7/debian:trixie"
+
+- job-template:
+ name: '{job-name}'
+ node: lx2-raspbian13build-ansible
+ description: |
+ Build the <code>{image}</code> image from
+ <a href="https://gitea.osmocom.org/osmocom/docker-playground/">
+ docker-playground
+ </a> and push it to the Osmocom registry.
+ concurrent: false
+ parameters:
+ - string:
+ name: BRANCH
+ description: |
+ Branch of <code>docker-playground.git</code>
+ default: 'master'
+ scm:
+ - git:
+ url: https://gerrit.osmocom.org/docker-playground
+ skip-tag: true
+ branches:
+ - '$BRANCH'
+ builders:
+ - shell: |
+ REGISTRY="registry.osmocom.org"
+
+ docker pull {base}
+ docker tag {base} "$REGISTRY"/{base}
+
+ setarch linux32 make -C "{image}" REGISTRY_HOST=$REGISTRY
+ docker push "$REGISTRY/osmocom-build/{image}"
+ properties:
+ - build-discarder:
+ num-to-keep: 120
+ wrappers:
+ - ansicolor:
+ colormap: xterm
To view, visit change 44054. To unsubscribe, or for help writing mail filters, visit settings.