Public | Automated Build

Last pushed: a year ago
Short Description
Docker image to send the deployment notification to Slack for CodeShip Docker infrastructure.
Full Description


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}"
Docker Pull Command
Owner
andromedarabbit

Comments (0)