CI: Use the correct bash syntax
authorJordan Petridis <jordan@centricular.com>
Mon, 12 Nov 2018 16:01:00 +0000 (18:01 +0200)
committerJordan Petridis <jordan@centricular.com>
Mon, 12 Nov 2018 16:01:00 +0000 (18:01 +0200)
345afee677770f4de89b1c4b01bc3021500d335c broke the bash
extreppsion that evaluates the strings, causing images to
never be pushed.

.gitlab-ci.yml

index ba7b3cb..d64d98a 100644 (file)
@@ -50,7 +50,7 @@ test manifest:
 
     # Push the images to the upstream registry
     - |
-      if [ "$CI_COMMIT_REF_NAME" = "master" && "$CI_PROJECT_NAMESPACE" = "gstreamer" ]; then
+      if [ "$CI_COMMIT_REF_NAME" = "master" -a "$CI_PROJECT_NAMESPACE" = "gstreamer" ]; then
         docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
         docker push ${REF}
         docker push ${LATEST}