Git Product home page Git Product logo

slack-notification-resource-boshrelease's Introduction

BOSH Release for slack-notification-resource

Send messages to your Slack channels from Concourse:

example

This BOSH release packages @Nopik's slack-notification-resource for Concourse, to make it simple to include the additional Concourse resource in your BOSH deployed Concourse system.

Final releases are automatically created based on any changes to the upstream slack-notification-resource

See the build pipeline https://ci.starkandwayne.com/pipelines/slack-notification-resource-boshrelease for status.

Final releases are available on https://bosh.io/releases as well as this project's own GitHub releases.

Installation

To use this bosh release, first upload it to the BOSH/bosh-lite that is running Concourse:

bosh upload release https://bosh.io/d/github.com/cloudfoundry-community/slack-notification-resource-boshrelease

Next, update your Concourse deployment manifest to add the resource.

Add the slack-notification-resource release to the list:

releases:
  - name: concourse
    version: latest
  - name: garden-linux
    version: latest
  - name: slack-notification-resource
    version: latest

Into the worker job, add the {release: slack-notification-resource, name: slack-notification-resource} job template that will install the package:

jobs:
- name: worker
  templates:
    ...
    - {release: slack-notification-resource, name: slack-notification-resource}

The final change is to add the slack-notification-resource package to the list of additional_resource_types:

jobs:
- name: worker
  ...
  properties:
    groundcrew:
      additional_resource_types:
      - type: slack-notification
        image: /var/vcap/packages/slack-notification-resource

And bosh deploy your Concourse manifest.

Usage

First, register a new webhook and select a default channel to send messages https://starkandwayne.slack.com/services/new/incoming-webhook

Slack will give you a URL like https://hooks.slack.com/services/XXXX/XXX/XXXX.

An example mini-pipeline that would send an alert:

---
jobs:
- name: alert
  public: true
  plan:
  - task: say-hello
    config:
      platform: linux
      image: "docker:///ubuntu"
      run:
        path: echo
        args: ["Hello, world!"]
  - put: alert
    params:
      text: Hi everybody!
      channel: "#general"
      username: concourse
      icon_url: http://cl.ly/image/3e1h0H3H2s0P/concourse-logo.png

resources:
- name: alert
  type: slack-notification
  source:
    url: https://hooks.slack.com/services/XXXX/XXX/XXXX

This will display the message with an icon for the avatar:

example

Setup pipeline in Concourse

fly -t snw c -c pipeline.yml --vars-from credentials.yml slack-notification-resource-boshrelease

slack-notification-resource-boshrelease's People

Contributors

dennisjbell avatar drnic avatar linuxbozo avatar lnguyen avatar mikegehard avatar nopik avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.