summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2019-04-04 11:25:28 +0200
committerMichel Dänzer <[email protected]>2019-04-16 10:41:07 +0200
commitcaf83e96e47ee8418678753472a2995f870b89a9 (patch)
tree46656f8d9452f8e90c1ddbe8adfafe9eb5a472bb /.gitlab-ci
parentd00b1c45117564087a501167601d252e57aba39d (diff)
gitlab-ci: Use HTTPS for APT repositories
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to '.gitlab-ci')
-rw-r--r--.gitlab-ci/debian-install.sh7
1 files 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 \