chiark / gitweb /
gitlab-ci: try to download PPA keys until they succeed
authorHans-Christoph Steiner <hans@eds.org>
Thu, 22 Feb 2018 09:27:10 +0000 (10:27 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Thu, 22 Feb 2018 14:08:54 +0000 (15:08 +0100)
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.

.gitlab-ci.yml

index 74e33abdcc757610b4576fe409e1ee3da4c417aa..18e282da559aa2132831c0f12821caf9150f7f0e 100644 (file)
@@ -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