From caf83e96e47ee8418678753472a2995f870b89a9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michel=20D=C3=A4nzer?= Date: Thu, 4 Apr 2019 11:25:28 +0200 Subject: [PATCH] gitlab-ci: Use HTTPS for APT repositories Reviewed-by: Eric Engestrom --- .gitlab-ci/debian-install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci/debian-install.sh b/.gitlab-ci/debian-install.sh index 229a58f40f3..4b7df61cb4b 100644 --- a/.gitlab-ci/debian-install.sh +++ b/.gitlab-ci/debian-install.sh @@ -6,15 +6,18 @@ set -o xtrace export DEBIAN_FRONTEND=noninteractive apt-get install -y \ + apt-transport-https \ + ca-certificates \ curl \ wget \ gnupg \ software-properties-common curl -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - -add-apt-repository "deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-7 main" +add-apt-repository "deb https://apt.llvm.org/stretch/ llvm-toolchain-stretch-7 main" -echo 'deb http://deb.debian.org/debian stretch-backports main' >/etc/apt/sources.list.d/backports.list +sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list +echo 'deb https://deb.debian.org/debian stretch-backports main' >/etc/apt/sources.list.d/backports.list apt-get update apt-get install -y -t stretch-backports \ -- 2.30.2