gitlab CI: remove obsolete variable expansion
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 6 Mar 2020 05:08:47 +0000 (15:08 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 13 Mar 2020 02:47:55 +0000 (12:47 +1000)
gitlab doesn't support double-nested variables so we can assume that these
variables don't need further expansion

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
.gitlab-ci.yml
.gitlab-ci/gitlab-ci.tmpl

index acc5293787d9455b1be25f602003003d93e8133e..5d4859ec664f09f3c7b16cbc9acb2f814ae0f455 100644 (file)
@@ -190,8 +190,7 @@ check-commit:
     # log in to the registry
     - podman login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
 
-    # get the full container image name (FDO_DISTRIBUTION_VERSION still has indirections)
-    - IMAGE=$(eval echo "$FDO_DISTRIBUTION_NAME/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG")
+    - IMAGE="$FDO_DISTRIBUTION_NAME/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG"
 
     - |
       # force rebuild if schedule, reuse otherwise
index 8ebb383f310425993fc48bb68ce8e9d085c4b523..d8a58d7fbc0d464a8914127da206a6992c90fd84 100644 (file)
@@ -127,8 +127,7 @@ check-commit:
     # log in to the registry
     - podman login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
 
-    # get the full container image name (FDO_DISTRIBUTION_VERSION still has indirections)
-    - IMAGE=$(eval echo "$FDO_DISTRIBUTION_NAME/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG")
+    - IMAGE="$FDO_DISTRIBUTION_NAME/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG"
 
     - |
       # force rebuild if schedule, reuse otherwise