Skip to content

Commit 1ff8066

Browse files
CircleCI Commit (#97)
Co-authored-by: circleci-app[bot] <127350680+circleci-app[bot]@users.noreply.github.com>
1 parent 6c20486 commit 1ff8066

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,27 @@ jobs:
1717
working_directory: ~/Tools
1818
steps:
1919
- checkout
20+
- run:
21+
name: Plan deployment
22+
command: |
23+
circleci run release plan "${CIRCLE_JOB}" \
24+
--environment-name="default" \
25+
--component-name="${CIRCLE_PROJECT_REPONAME}" \
26+
--target-version="1.0.${CIRCLE_BUILD_NUM}-${CIRCLE_SHA1:0:7}"
2027
- run:
2128
name: "Deploy step"
2229
command: echo "Deploying project..."
30+
- run:
31+
name: Update deployment status to running
32+
command: circleci run release update "${CIRCLE_JOB}" --status=RUNNING
33+
- run:
34+
name: Update deployment status to success
35+
command: circleci run release update "${CIRCLE_JOB}" --status=SUCCESS
36+
when: on_success
37+
- run:
38+
name: Update deployment status to failed
39+
command: circleci run release update "${CIRCLE_JOB}" --status=FAILED
40+
when: on_fail
2341

2442
workflows:
2543
build-and-deploy:

0 commit comments

Comments
 (0)