From cbe1210e625c259cbff1a246129ea5fa2cc7b8f0 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sun, 3 Jan 2021 10:56:21 +0100 Subject: [PATCH] [#695] Only build static image on non-SNAPSHOTs --- .circleci/config.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2a0ca555..85c2f024 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -161,9 +161,8 @@ jobs: - run: name: "Short circuit on SNAPSHOT" command: | - cat resources/BABASHKA_VERSION | grep SNAPSHOT - status=$? - if test $status -eq 0 + VERSION=$(cat resources/BABASHKA_VERSION) + if [[ "$VERSION" == *-SNAPSHOT ]] then circleci task halt fi