From: Hans-Christoph Steiner Date: Thu, 22 Feb 2018 09:27:10 +0000 (+0100) Subject: gitlab-ci: try to download PPA keys until they succeed X-Git-Tag: 1.0.1~2^2~3 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=0e9252db371eb53c844cfa8440f6e1c9a4754cf0;p=fdroidserver.git gitlab-ci: try to download PPA keys until they succeed This download occasionally fails, so this keeps retrying till it succeeds. The CI job has a time limit, so no need to figure out an exit condition. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 74e33abd..18e282da 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -62,7 +62,7 @@ ubuntu_lts: only: - master@fdroid/fdroidserver script: - - apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-key 9AAC253193B65D4DF1D0A13EEC4632C79C5E0151 + - while ! apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-key 9AAC253193B65D4DF1D0A13EEC4632C79C5E0151; do sleep 15; done - export RELEASE=`sed -n 's,^deb [^ ][^ ]* \([a-z]*\).*,\1,p' /etc/apt/sources.list | head -1` - echo "deb http://ppa.launchpad.net/fdroid/fdroidserver/ubuntu $RELEASE main" >> /etc/apt/sources.list - apt update -y