diff --git a/.circleci/config.yml b/.circleci/config.yml index 8b2276f..f289b53 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,9 +17,27 @@ jobs: working_directory: ~/Tools steps: - checkout + - run: + name: Plan deployment + command: | + circleci run release plan "${CIRCLE_JOB}" \ + --environment-name="default" \ + --component-name="${CIRCLE_PROJECT_REPONAME}" \ + --target-version="1.0.${CIRCLE_BUILD_NUM}-${CIRCLE_SHA1:0:7}" - run: name: "Deploy step" command: echo "Deploying project..." + - run: + name: Update deployment status to running + command: circleci run release update "${CIRCLE_JOB}" --status=RUNNING + - run: + name: Update deployment status to success + command: circleci run release update "${CIRCLE_JOB}" --status=SUCCESS + when: on_success + - run: + name: Update deployment status to failed + command: circleci run release update "${CIRCLE_JOB}" --status=FAILED + when: on_fail workflows: build-and-deploy: