ci: buildslave: fix Docker image tests
authorPetr Štetiar <ynezz@true.cz>
Sat, 6 Mar 2021 10:35:18 +0000 (11:35 +0100)
committerPetr Štetiar <ynezz@true.cz>
Sat, 6 Mar 2021 10:35:18 +0000 (11:35 +0100)
Refactoring leftover.

Fixes: 70883902ecf1 ("GitLab CI integration")
Signed-off-by: Petr Štetiar <ynezz@true.cz>
.gitlab/docker/buildslave/gitlab.yml

index 960ee25fd1423e8b26ecee0c679460aab0ae47bd..246979548629f96f8589f41a141e922d3013fb75 100644 (file)
@@ -9,10 +9,11 @@ test Docker image buildslave:
   script:
     - export IMAGE_NAME="$(echo $CI_JOB_NAME | sed 's/test Docker image \(.*\)/\1/')"
     - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
-    - docker pull "$CI_REGISTRY_IMAGE/$IMAGE_NAME:$CI_COMMIT_REF_SLUG"
+    - docker pull "$CI_REGISTRY_IMAGE/$IMAGE_NAME-$BUILDBOT_VERSION:$CI_COMMIT_REF_SLUG"
     - >
       docker run --rm --env BUILDSLAVE_NAME=foo --env BUILDSLAVE_PASSWORD=XXX
-      "$CI_REGISTRY_IMAGE/$IMAGE_NAME:$CI_COMMIT_REF_SLUG" | grep "worker configured in /builder"
+      "$CI_REGISTRY_IMAGE/$IMAGE_NAME-$BUILDBOT_VERSION:$CI_COMMIT_REF_SLUG" |
+      grep "worker configured in /builder"
 
 deploy Docker image buildslave:
   stage: docker deploy