From 0f696d0ea543aa46ba0e04d07c791f8d4a244605 Mon Sep 17 00:00:00 2001
From: Clayton Craft <clayton@craftyguy.net>
Date: Tue, 29 Oct 2024 18:47:41 -0700
Subject: [PATCH] CI: force IPv4 for gitlab.postmarketos.org

---
 .gitlab-ci.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index beaee2c..3cd5f56 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -21,6 +21,9 @@ integration test:
   before_script:
     - apk add curl android-tools file
     - apk add --allow-untrusted -X http://mirror.postmarketos.org/postmarketos/master/ mkbootimg-osm0sis
+    # Force IPv4 for gitlab.postmarketos.org until it supports IPv6 too, OSUOSL is
+    # working on it (infra#195)
+    - "echo '140.211.167.182 gitlab.postmarketos.org' >> /etc/hosts"
     - curl -fsSL "https://gitlab.postmarketos.org/postmarketOS/ci-common/-/raw/master/install_pmbootstrap.sh" | sh
     - su pmos -c "pmbootstrap config device ${DEVICE}"
     - su pmos -c "pmbootstrap config ui none"
-- 
GitLab