osmith has uploaded this change for review.

View Change

jobs/registry-rebuild-upload-gerrit: new job

Change-Id: I03038eecb46208aa4bdafe1dc5379cfb5b7e16c7
---
A jobs/registry-rebuild-upload-gerrit.yml
1 file changed, 36 insertions(+), 0 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/34/44134/1
diff --git a/jobs/registry-rebuild-upload-gerrit.yml b/jobs/registry-rebuild-upload-gerrit.yml
new file mode 100644
index 0000000..3f6e51f
--- /dev/null
+++ b/jobs/registry-rebuild-upload-gerrit.yml
@@ -0,0 +1,36 @@
+- job:
+ name: 'registry-rebuild-upload-gerrit'
+ description: |
+ Build the <code>gerrit</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"
+ TAG="$(grep 'FROM.*gerritcodereview/gerrit:' gerrit/Dockerfile | cut -d : -f 2)"
+
+ test -n "$TAG"
+ echo "release=$TAG" >gerrit/.release
+ make -C "gerrit" REGISTRY_HOST="$REGISTRY"
+ docker tag "$REGISTRY"/gerrit:latest "$REGISTRY"/gerrit:"$TAG"
+ docker push "$REGISTRY"/gerrit:"$TAG"
+ properties:
+ - build-discarder:
+ num-to-keep: 120
+ wrappers:
+ - ansicolor:
+ colormap: xterm

To view, visit change 44134. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I03038eecb46208aa4bdafe1dc5379cfb5b7e16c7
Gerrit-Change-Number: 44134
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith@sysmocom.de>