- project:
    name: registry-rebuild-upload
    jobs:
      - "{job-name}"
    job-name:
      - registry-rebuild-upload-android:
          image: "debian-bookworm-android"
      - registry-rebuild-upload-aram-applet:
          image: "debian-bookworm-aram-applet"
      - registry-rebuild-upload-rp2040:
          image: "debian-bookworm-rp2040"
- job-template:
    name: '{job-name}'
    description: |
        Build the {image} image from
        
          docker-playground
         and push it to the Osmocom registry.
    concurrent: false
    parameters:
      - string:
          name: BRANCH
          description: |
                Branch of docker-playground.git
          default: 'master'
    scm:
      - git:
          url: https://gerrit.osmocom.org/docker-playground
          skip-tag: true
          branches:
            - '$BRANCH'
    builders:
      - shell: |
          REGISTRY="registry.osmocom.org"
          make -C "{image}" REGISTRY_HOST=$REGISTRY
          docker push "$REGISTRY/$USER/{image}"
    properties:
      - build-discarder:
          num-to-keep: 120
    wrappers:
      - ansicolor:
          colormap: xterm