diff --git a/.circleci/config.yml b/.circleci/config.yml index 85be176..928c97d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,9 +15,27 @@ jobs: - image: cimg/base:current 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 command: echo "Deploying..." + - 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: say-hello-workflow: