Skip to content

Commit

Permalink
Updates for Announcement Notifications to be published on Slack Chann… (
Browse files Browse the repository at this point in the history
#27)

* Updates for Announcement Notifications to be published on Slack Channels. Vulnerability fixes for devDependencies "jest" and "nyc" included. Increase version to align with next release.

* Removed carets from in front of versions as per review request.

* CI test fail - restored package-lock.json.

* Increase version to 5.2.1.

* Version to 5.2.0
  • Loading branch information
HenkKodde committed Feb 21, 2019
1 parent e8c8ca0 commit d9e5a1e
Show file tree
Hide file tree
Showing 3 changed files with 1,304 additions and 1,636 deletions.
16 changes: 15 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,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}* - Release \`${CIRCLE_TAG}\`: https://github.com/mojaloop/${CIRCLE_PROJECT_REPONAME}/releases/tag/${CIRCLE_TAG}\"
}"
jobs:
setup:
<<: *defaults_working_directory
Expand Down Expand Up @@ -330,7 +341,8 @@ jobs:
<<: *defaults_build_docker_build
- run:
<<: *defaults_build_docker_publish

- run:
<<: *defaults_slack_announcement
build:
machine: true
# <<: *default_env
Expand All @@ -348,6 +360,8 @@ jobs:
<<: *defaults_build_docker_build
- run:
<<: *defaults_build_docker_publish
- run:
<<: *defaults_slack_announcement

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

0 comments on commit d9e5a1e

Please sign in to comment.