Merge "Support CentOS 7 in GoogleStorage Gitlab template"
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Tue, 8 Feb 2022 15:26:21 +0000 (15:26 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Tue, 8 Feb 2022 15:26:21 +0000 (15:26 +0000)
gitlab-templates/GoogleStorage.gitlab-ci.yml

index be941a8..4ddf313 100644 (file)
@@ -24,7 +24,12 @@ variables:
 
 .gsutil-install: &gsutil-install
   script:
-    - dnf -y install python3-pip
+    - |
+        if command -v dnf &> /dev/null; then
+          dnf -y install python3-pip
+        else
+          yum -y install python3-pip
+        fi
     - python3 -m pip install -U pip
     - python3 -m pip install gsutil
     - echo "$GSUTIL_CONFIG" > ~/.boto