From a92182f8296b651bcad5486896f200ab0bba802c Mon Sep 17 00:00:00 2001 From: cmdoret Date: Tue, 6 Oct 2020 19:23:56 +0200 Subject: [PATCH] fetch correct version number using git describe in circleci --- .circleci/config.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4a61a78..75d705b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,7 +5,7 @@ jobs: - image: circleci/golang:1.12 steps: - checkout - - run: make release VERSION=${CIRCLE_TAG} + - run: make release VERSION=$(git describe) - persist_to_workspace: root: . paths: @@ -38,8 +38,6 @@ workflows: filters: branches: only: release - tags: - only: /^v.*/ requires: - build - test