osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/37712?usp=email )
Change subject: registry-rebuild-upload-testenv: new job ......................................................................
registry-rebuild-upload-testenv: new job
Add a job that updates the one podman image used by ttcn3 testsuites with testenv to the registry. The new testsuite jobs will not build their own images anymore, just pull this one at the start.
Related: OS#6494 Change-Id: I4f069efcb1de01b8efda095d649721f41ab8ac35 --- M jobs/registry-rebuild-upload-titan.yml 1 file changed, 46 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/12/37712/1
diff --git a/jobs/registry-rebuild-upload-titan.yml b/jobs/registry-rebuild-upload-titan.yml index a535920..8fed502 100644 --- a/jobs/registry-rebuild-upload-titan.yml +++ b/jobs/registry-rebuild-upload-titan.yml @@ -3,6 +3,7 @@ jobs: - registry-rebuild-upload-titan - registry-rebuild-upload-ttcn3-bts-tests + - registry-rebuild-upload-testenv
- scm: name: osmocom-docker-playground @@ -69,4 +70,35 @@ notify-every-unstable-build: true recipients: 'jenkins-notifications@lists.osmocom.org'
+- job: + name: registry-rebuild-upload-testenv + description: Rebuild + publish podman images for testenv (OS#6494) + parameters: + - string: + name: BRANCH + description: osmo-ttcn3-hacks.git branch + default: 'master' + scm: + - git: + url: https://gerrit.osmocom.org/osmo-ttcn3-hacks + branches: + - '$BRANCH' + builders: + - shell: | + REGISTRY="registry.osmocom.org" + DISTRO="debian:bookworm" + IMAGE="registry.osmocom.org/osmocom-build/"$(echo "$DISTRO" | tr : -)"-osmo-ttcn3-testenv" + + podman build \ + --build-arg DISTRO="$DISTRO" \ + --build-arg REGISTRY="$REGISTRY" \ + -t "$IMAGE" \ + _testenv/data/podman + + podman push "$IMAGE" + publishers: + - email: + notify-every-unstable-build: true + recipients: 'jenkins-notifications@lists.osmocom.org' + # vim: expandtab tabstop=2 shiftwidth=2