From d563b4e009d4d37a503d6930cbd8b9e623db96d4 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 28 Jun 2023 10:56:33 +0200 Subject: gitlab-ci: fix setup of debian:9 container Debian:9 (stretch) is archived. We need to patch the sources.list for it to be usable. Although it's end of life, we are still interested, whether we are able to build with such old compiler. Fix the test. --- .gitlab-ci.yml | 4 ++-- .gitlab-ci/debian-install.sh | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cf302f179b..665c428e4b 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-2ded62f40aeb' + DEBIAN_TAG: 'tag-33f59276e980' FEDORA_TAG: 'tag-c374af7add25' - UBUNTU_TAG: 'tag-2ded62f40aeb' + UBUNTU_TAG: 'tag-33f59276e980' 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 c4219768aa..d6459784ba 100755 --- a/.gitlab-ci/debian-install.sh +++ b/.gitlab-ci/debian-install.sh @@ -4,6 +4,15 @@ set -ex grep -q '^VERSION=.\(9 (stretch)\|18.04.[0-9]\+ LTS\)' /etc/os-release && IS_DEBIAN_9=1 || IS_DEBIAN_9=0 +if [ $IS_DEBIAN_9 = 1 ]; then + cat > /etc/apt/sources.list <