diff options
author | Oliver Smith <osmith@sysmocom.de> | 2021-12-10 11:39:28 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2021-12-11 15:16:54 +0000 |
commit | db275974b8a3a119ab5576ce6306202a4c8c59f6 (patch) | |
tree | f34d824ccd6a12e2b24637b24105ebb42d2bf8df /jenkins-common.sh | |
parent | 39ae7ed2f3de4c0a43a8621db14b5356425bbb75 (diff) |
Add centos7 containers
Related: SYS#5754
Change-Id: Iadf3d0d7143c2d81ea5e87fd07a3f4cd9239cb46
Diffstat (limited to 'jenkins-common.sh')
-rw-r--r-- | jenkins-common.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/jenkins-common.sh b/jenkins-common.sh index 3511c02..9373076 100644 --- a/jenkins-common.sh +++ b/jenkins-common.sh @@ -15,7 +15,9 @@ docker_depends() { feed="$(echo "$feed" | sed 's/\-centos8$//')" # e.g. "2021q1" echo "centos8-obs-$feed" ;; + osmo-*-latest-centos7) echo "centos7-obs-latest" ;; osmo-*-latest-centos8) echo "centos8-obs-latest" ;; + osmo-*-centos7) echo "centos7-build" ;; osmo-*-centos8) echo "centos8-build" ;; osmo-*-latest) echo "debian-stretch-obs-latest" ;; osmo-*) echo "debian-stretch-build" ;; @@ -25,7 +27,9 @@ docker_depends() { docker_distro_from_image_name() { case "$1" in + osmo-*-centos7) echo "centos7" ;; osmo-*-centos8) echo "centos8" ;; + centos7-*) echo "centos7" ;; centos8-*) echo "centos8" ;; *) echo "debian-stretch" ;; esac @@ -33,7 +37,9 @@ docker_distro_from_image_name() { docker_upstream_distro_from_image_name() { case "$1" in + osmo-*-centos7) echo "centos:centos7"; ;; osmo-*-centos8) echo "centos:centos8"; ;; + centos7-*) echo "centos:centos7" ;; centos8-*) echo "centos:centos8" ;; debian10-*) echo "debian:buster" ;; *) echo "debian:stretch" ;; @@ -46,6 +52,10 @@ docker_dir_from_image_name() { # e.g. osmo-mgw-2021q1-centos8 -> osmo-mgw-latest echo "$1" | sed 's/20[0-9][0-9]q.*\-centos8$/latest/' ;; + osmo-*-centos7) + # e.g. osmo-mgw-latest-centos7 -> osmo-mgw-latest + echo "$1" | sed 's/\-centos7$//' + ;; osmo-*-centos8) # e.g. osmo-mgw-latest-centos8 -> osmo-mgw-latest echo "$1" | sed 's/\-centos8$//' |