From f4478769df0b053d5e547f69d72d0fa11370f631 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sun, 3 Jan 2021 10:48:03 +0100 Subject: [PATCH] [#695] Only build static image on non-SNAPSHOTs --- .circleci/config.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0cca27fc..2a0ca555 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -158,6 +158,15 @@ jobs: command: | git submodule init git submodule update + - run: + name: "Short circuit on SNAPSHOT" + command: | + cat resources/BABASHKA_VERSION | grep SNAPSHOT + status=$? + if test $status -eq 0 + then + circleci task halt + fi - restore_cache: keys: - linux-{{ checksum "project.clj" }}-{{ checksum ".circleci/config.yml" }}