From ccb16013e0772b35fa41269541dce3839a6e116b Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 30 Jun 2023 18:49:45 +0200 Subject: [PATCH] gitlab-ci: fix detection and handling of Ubuntu 18.04 Fixes: d563b4e009d4 ('gitlab-ci: fix setup of debian:9 container') --- .gitlab-ci.yml | 4 ++-- .gitlab-ci/debian-install.sh | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 665c428e4..55c5d651a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -59,9 +59,9 @@ variables: # ".default_tag". ALPINE_TAG: 'tag-d53edbf2ebdd' CENTOS_TAG: 'tag-c374af7add25' - DEBIAN_TAG: 'tag-33f59276e980' + DEBIAN_TAG: 'tag-340ef1f25d8d' FEDORA_TAG: 'tag-c374af7add25' - UBUNTU_TAG: 'tag-33f59276e980' + UBUNTU_TAG: 'tag-340ef1f25d8d' ALPINE_EXEC: 'bash .gitlab-ci/alpine-install.sh' CENTOS_EXEC: 'bash .gitlab-ci/fedora-install.sh' diff --git a/.gitlab-ci/debian-install.sh b/.gitlab-ci/debian-install.sh index d6459784b..737d40522 100755 --- a/.gitlab-ci/debian-install.sh +++ b/.gitlab-ci/debian-install.sh @@ -2,7 +2,10 @@ set -ex -grep -q '^VERSION=.\(9 (stretch)\|18.04.[0-9]\+ LTS\)' /etc/os-release && IS_DEBIAN_9=1 || IS_DEBIAN_9=0 +IS_DEBIAN_9=0 +IS_UBUNTU_18_04=0 +grep -q '^VERSION=.\(9 (stretch)\)' /etc/os-release && IS_DEBIAN_9=1 +grep -q '^VERSION=.\(18.04.[0-9]\+ LTS\)' /etc/os-release && IS_UBUNTU_18_04=1 if [ $IS_DEBIAN_9 = 1 ]; then cat > /etc/apt/sources.list <