Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 0448e9b

Browse files
author
sysadmin-frontend-binary
authored
Merge pull request #2891 from Mahboobeh-binary/slack-integration
update slack notification message
2 parents aeef2c1 + a9b1191 commit 0448e9b

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

.circleci/config.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,11 @@ commands:
131131
for i in {1..3}; do npm test && break; done
132132
notify_slack:
133133
description: "Notify slack"
134-
parameters:
135-
target:
136-
type: string
137134
steps:
138135
- slack/status:
139136
include_project_field: false
140-
failure_message: "<< parameters.target >> release failed for binary bot with version $(cat www/version)"
141-
success_message: "<< parameters.target >> release succeeded for binary bot with version $(cat www/version)"
137+
failure_message: "Release failed for binary bot with version *$(cat www/version)*"
138+
success_message: "Release succeeded for binary bot with version *$(cat www/version)*"
142139
webhook: ${SLACK_WEBHOOK}
143140
jobs:
144141
test:
@@ -149,7 +146,7 @@ jobs:
149146
- npm_install
150147
- test
151148

152-
release_beta:
149+
release_staging:
153150
docker:
154151
- image: circleci/node:8.10.0-stretch
155152
steps:
@@ -159,9 +156,7 @@ jobs:
159156
- build
160157
- deploy:
161158
target_branch: "staging"
162-
- notify_slack:
163-
target: "Staging"
164-
159+
- notify_slack
165160
release_production:
166161
docker:
167162
- image: circleci/node:8.10.0-stretch
@@ -172,9 +167,7 @@ jobs:
172167
- build
173168
- deploy:
174169
target_branch: "production"
175-
- notify_slack:
176-
target: "Production"
177-
170+
- notify_slack
178171
release_aws_production:
179172
docker:
180173
- image: circleci/node:12.13.0-stretch
@@ -187,8 +180,7 @@ jobs:
187180
target: "production"
188181
- k8s_deploy:
189182
target: "production"
190-
- notify_slack:
191-
target: "Production"
183+
- notify_slack
192184

193185
workflows:
194186
test:
@@ -199,7 +191,7 @@ workflows:
199191
ignore: /^master$/
200192
release:
201193
jobs:
202-
- release_beta:
194+
- release_staging:
203195
filters:
204196
branches:
205197
only: /^master$/

0 commit comments

Comments
 (0)