gitlab-ci: Download an updated keyring
authorOlivier Crête <olivier.crete@collabora.com>
Wed, 21 Oct 2020 21:59:55 +0000 (17:59 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Wed, 21 Oct 2020 22:43:54 +0000 (18:43 -0400)
The keyring in our base image is outdated.

.gitlab-ci.yml

index e4f6b90..2aa86b7 100644 (file)
@@ -47,7 +47,12 @@ build msys2:
 
     # For some reason docker build hangs if this is included in the image, needs more troubleshooting
     - $env:PATH += ';C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\msys64\mingw32\bin'
+    # It seems that the gpg doesn't like the SSL secured version of the keyserver
     - C:\msys64\usr\bin\bash -c "pacman-key --init && pacman-key --populate msys2 && pacman-key --refresh-keys || true"
+    - echo "Download newest msys2 keyring"
+    - C:\msys64\usr\bin\bash -c "curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz && pacman -U --noconfirm msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz"
+    - C:\msys64\usr\bin\bash -c "pacman-key --init && pacman-key --populate msys2"
+    - C:\msys64\usr\bin\bash -c "pacman-key --refresh-keys || true"
     - echo "Updating MSYS2"
     - C:\msys64\usr\bin\bash -c "pacman -Syuu --noconfirm || echo Update failed, ignoring"
     - echo "Killing all MSYS2 processes"