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.
This commit is contained in:
Olaf Meeuwissen 2017-08-09 21:38:32 +09:00
parent e5dad3d29c
commit 6c44a604b1
1 changed files with 1 additions and 1 deletions

View File

@ -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"