Sign inSign up

andromedarabbit/codeship-slack-notifier

By andromedarabbit

Updated almost 10 years ago

Docker image to send the deployment notification to Slack for CodeShip Docker infrastructure.

Image
0

1.9K

andromedarabbit/codeship-slack-notifier repository overview

Docker Stars Docker Pulls

CodeShip Slack Notifier

Docker image to send the deployment notification to Slack for CodeShip Docker infrastructure.

Usage

codeship-steps.yml
- type: serial
  steps:
    - name: notify
      service: deploynotify
      command: /usr/local/bin/slack.sh
codeship-services.yml
deploynotify:
  image: andromedarabbit/codeship-slack-notifier
  encrypted_env_file: deploy.env.encrypted
deploy.env
SLACK_WEBHOOK_TOKEN=MY_TOKEN
DEPLOY_TO=MY_REGISTRY

Message Customization

deploy.env
SLACK_WEBHOOK_TOKEN=MY_TOKEN
SLACK_SUBJECT="*${CI_REPO_NAME}* is deployed!"
SLACK_MESSAGE="Docker image was deployed to ${DEPLOY_TO}:${CI_BRANCH}.${CI_COMMIT_ID} from ${CI_NAME}"

Tag summary

Content type

Image

Digest

Size

2.9 MB

Last updated

almost 10 years ago

docker pull andromedarabbit/codeship-slack-notifier