From 6c44a604b141754076f6cb973ba8f7afc307a0dc Mon Sep 17 00:00:00 2001 From: Olaf Meeuwissen Date: Wed, 9 Aug 2017 21:38:32 +0900 Subject: [PATCH] Fix build failure The CI_REGISTRY_IMAGE variable should not be eval'd. In addition, it seems safer to run the pipe in a subshell to avoid issues with the && chaining. --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 376d458..5750432 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -39,7 +39,7 @@ build: --volume $PWD:/devuan --workdir /devuan "$CI_REGISTRY_IMAGE"/migrated ./bootstrap.sh - version="$DEVUAN_VERSION"-$(date +%F) - && tar -cC rootfs . | docker import - "$(CI_REGISTRY_IMAGE)":"$version" + && (tar -cC rootfs . | docker import - "$CI_REGISTRY_IMAGE":"$version") && docker push "$CI_REGISTRY_IMAGE":"$version" && docker tag "$CI_REGISTRY_IMAGE":"$version" "$CI_REGISTRY_IMAGE" && docker push "$CI_REGISTRY_IMAGE"