diff --git a/.circleci/config.yml b/.circleci/config.yml index c6362b75953..ba1adacbd5b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -87,6 +87,16 @@ jobs: mv -v tmpfile "<>" fi + - run: + name: Set det-version parameter. + command: | + VERSION=$(./version.sh) + echo "Version is: [${VERSION}]" + echo "CIRCLE_TAG is: [${CIRCLE_TAG}]" + jq --arg version "${VERSION}" '. += {"det-version": $version}' < "<>" > tmpfile + mv -v tmpfile "<>" + cat "<>" + # this must be last; persist the file to the workspace - persist_to_workspace: root: . diff --git a/.circleci/real_config.yml b/.circleci/real_config.yml index 558c2e1225b..6e564486b57 100644 --- a/.circleci/real_config.yml +++ b/.circleci/real_config.yml @@ -9,6 +9,7 @@ orbs: kubernetes: circleci/kubernetes@0.11.0 queue: eddiewebb/queue@2.2.1 win: circleci/windows@5.0.0 + python: circleci/python@2.2.0 executors: python-38: @@ -2697,10 +2698,8 @@ jobs: executor: << parameters.executor-name >> steps: - checkout - - run: - name: Install git - command: | - sudo apt-get install git + - python/install-packages: + packages: ['git'] - run: name: Set VERSION environment variable command: |