summaryrefslogtreecommitdiffstats
path: root/gitlab-templates
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab-templates')
-rw-r--r--gitlab-templates/GoogleStorage.gitlab-ci.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/gitlab-templates/GoogleStorage.gitlab-ci.yml b/gitlab-templates/GoogleStorage.gitlab-ci.yml
index be941a81e..4ddf313d6 100644
--- a/gitlab-templates/GoogleStorage.gitlab-ci.yml
+++ b/gitlab-templates/GoogleStorage.gitlab-ci.yml
@@ -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