gitlab-ci: Use HTTPS for APT repositories
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 4 Apr 2019 09:25:28 +0000 (11:25 +0200)
committerMichel Dänzer <michel@daenzer.net>
Tue, 16 Apr 2019 08:41:07 +0000 (10:41 +0200)
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
.gitlab-ci/debian-install.sh

index 229a58f40f3b59ce0136ce54e8157675c76fb617..4b7df61cb4b0f742e307224616465e9a766b6e93 100644 (file)
@@ -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 \