Skip to content

Commit

Permalink
Announcements for slack
Browse files Browse the repository at this point in the history
  • Loading branch information
mdebarros committed Feb 12, 2019
1 parent 21a3cfc commit 608318e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,17 @@ defaults_deploy_install_or_upgrade_helm_chart: &defaults_deploy_install_or_upgra
helm upgrade $K8_RELEASE_NAME --repo=$K8_HELM_REPO --version $K8_HELM_CHART_VERSION --reuse-values $HELM_VALUE_SET_VALUES -f $CIRCLE_WORKING_DIRECTORY/$AWS_S3_DIR_DEVOPS_DEPLOYMENT_CONFIG_HELM/$HELM_VALUE_FILENAME $K8_HELM_CHART_NAME
fi
defaults_slack_announcement: &defaults_slack_announcement
name: Slack announcement for tag releases
command: |
curl -X POST \
$SLACK_WEBHOOK_ANNOUNCEMENT \
-H 'Content-type: application/json' \
-H 'cache-control: no-cache' \
-d "{
\"text\": \"*${CIRCLE_PROJECT_REPONAME} - New release ${CIRCLE_TAG}*: ${CIRCLE_REPOSITORY_URL}/releases/tag/${CIRCLE_TAG}\"
}"
jobs:
setup:
<<: *defaults_working_directory
Expand Down Expand Up @@ -325,6 +336,8 @@ jobs:
<<: *defaults_build_docker_build
- run:
<<: *defaults_build_docker_publish
- run:
<<: *defaults_slack_announcement

build:
machine: true
Expand All @@ -343,6 +356,8 @@ jobs:
<<: *defaults_build_docker_build
- run:
<<: *defaults_build_docker_publish
- run:
<<: *defaults_slack_announcement

# deploy-snapshot:
# <<: *defaults_working_directory
Expand Down

0 comments on commit 608318e

Please sign in to comment.