Skip to content

Commit

Permalink
fix: cicd slack messages schema
Browse files Browse the repository at this point in the history
  • Loading branch information
iranreyes committed Jul 27, 2022
1 parent b8d79b7 commit 50ff4bf
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ commands:
]
}
event: fail
debug: true
channel: << parameters.slack_channel >>

slack-notification-onsuccess-deployment:
Expand All @@ -176,7 +177,7 @@ commands:
"type": "header",
"text": {
"type": "plain_text",
"text": ":white_check_mark: << parameters.title >>",
"text": ":white_check_mark: Deployment Successful! :tada:",
"emoji": true
}
},
Expand Down Expand Up @@ -225,6 +226,7 @@ commands:
]
}
event: pass
debug: true
channel: << parameters.slack_channel >>

slack-notification-wait-for-approval:
Expand Down Expand Up @@ -590,7 +592,6 @@ workflows:
- slack-notification-onsuccess-deployment:
environment: 'Develop'
slack_channel: $SLACK_CHANNEL_ID
title: 'Deployment Successful! :tada:'
- integration-tests:
context: SLACK_CREDENTIALS
requires:
Expand Down Expand Up @@ -620,7 +621,7 @@ workflows:
- performance-tests
environment: 'Staging'
slack_channel: $SLACK_CHANNEL_ID
title: 'Waiting for Deployment Approval'
title: 'Awaiting Approval :raised_hand:'

- approve-build-staging:
type: approval
Expand Down Expand Up @@ -654,7 +655,6 @@ workflows:
- slack-notification-onsuccess-deployment:
environment: 'Staging'
slack_channel: $SLACK_CHANNEL_ID
title: 'Deployment Successful! :tada:'
- storybook:
context: SLACK_CREDENTIALS
requires:
Expand Down Expand Up @@ -712,7 +712,7 @@ workflows:
- accessibility-tests
environment: 'Production'
slack_channel: $SLACK_CHANNEL_ID
title: 'Waiting for Deployment Approval'
title: 'Awaiting Approval :raised_hand:'

- approve-build-production:
context: SLACK_CREDENTIALS
Expand Down Expand Up @@ -747,7 +747,6 @@ workflows:
- slack-notification-onsuccess-deployment:
environment: 'Production'
slack_channel: $SLACK_CHANNEL_ID
title: 'Deployment Successful! :tada:'
- social-test:
context: SLACK_CREDENTIALS
requires:
Expand Down

0 comments on commit 50ff4bf

Please sign in to comment.