osmith has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ci/+/44054?usp=email )

Change subject: jobs/registry-rebuild-upload-arm: new job
......................................................................

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(-)

Approvals:
  pespin: Looks good to me, but someone else must approve
  fixeria: Looks good to me, approved
  Jenkins Builder: Verified




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 https://gerrit.osmocom.org/c/osmo-ci/+/44054?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I66614406c3be68fdc5773a34617b7154e497ebdf
Gerrit-Change-Number: 44054
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>

Reply via email to