Skip to content

Commit

Permalink
format slack message
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahboobeh-binary committed Jun 29, 2020
1 parent 194344c commit e035339
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version: 2.1
orbs:
k8s: circleci/kubernetes@0.7.0
slack: circleci/slack@3.4.2
commands:
git_checkout_from_cache:
description: "Git checkout and save cache"
Expand Down Expand Up @@ -133,15 +134,12 @@ commands:
done
notify_slack:
description: "Notify slack"
parameters:
target:
type: string
steps:
- slack/status:
include_project_field: false
failure_message: "<< parameters.target >> release failed for webtrader with version ``$(cat www/version)``"
success_message: "<< parameters.target >> release succeeded for webtrader with version $(cat www/version)"
webhook: ${SLACK_WEBHOOK}
failure_message: "Release failed for webtrader with version *$(cat dist/compressed/version)*"
success_message: "Release succeeded for webtrader with version *$(cat dist/compressed/version)*"
webhook: ${SLACK_WEBHOOK}
jobs:
release_staging:
docker:
Expand All @@ -152,8 +150,7 @@ jobs:
- build
- deploy:
target_branch: "staging"
- notify_slack:
target: "Staging"
- notify_slack
release_production:
docker:
- image: circleci/node:12.13.0-stretch
Expand All @@ -163,9 +160,8 @@ jobs:
- build
- deploy:
target_branch: "production"
- notify_slack:
target: "Production"
release_aws_production:
- notify_slack
release_aws_production:
docker:
- image: circleci/node:12.13.0-stretch
steps:
Expand Down

0 comments on commit e035339

Please sign in to comment.