From 2ec33592e98f257195ddea5f68d9c43a3c25df09 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Mon, 12 Nov 2018 18:01:00 +0200 Subject: [PATCH] CI: Use the correct bash syntax 345afee677770f4de89b1c4b01bc3021500d335c broke the bash extreppsion that evaluates the strings, causing images to never be pushed. --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ba7b3cb..d64d98a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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} -- 2.7.4