Giter Site home page Giter Site logo

mlsdev / mls_ruby_capistrano_slacker Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 71 KB

The way to organize your deploys using GitLab and Capistrano

Home Page: https://mlsdev.com

License: MIT License

Ruby 99.03% Shell 0.97%
mlsdev ruby ruby-on-rails gem rubygem slack-api slackapi capistrano capistrano3 capistrano-tasks

mls_ruby_capistrano_slacker's Introduction

mls_ruby_capistrano_slacker

Capistrano and GitLab to Slack integration.

Installation

Add this line to your application's Gemfile:

gem 'mls_ruby_capistrano_slacker', tag: 'vX.X.X', github: 'MLSDev/mls_ruby_capistrano_slacker'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mls_ruby_capistrano_slacker

Update Capfile

require 'capistrano/mls_ruby_capistrano_slacker'

mls_ruby_capistrano_slacker_webhook_url

Add variable to your stage

set :mls_ruby_capistrano_slacker_webhook_url, ENV.fetch('CAPISTANO_SLACKER_WEBHOOK_URL')

set :mls_ruby_capistrano_slacker_display_display_random_picture, true # Default value false

set :mls_ruby_capistrano_slacker_notify_about_beginning, true # Default value false

mls_ruby_gitlab_private_token

And don't forget to set mls_ruby_gitlab_private_token. You can generate it using this guide. We prefere to set env variables via UI.

set :mls_ruby_gitlab_private_token, ENV.fetch('GITLAB__PRIVATE_TOKEN')

mls_ruby_capistrano_slacker_post_release_description

Also, if you want to publish release description to your Slack - just set following variable in your deploy configs

set :mls_ruby_capistrano_slacker_post_release_description, true

Ability to skip it

If You really need to have this gem inside your project, and dont want to see messages from that, You can add following key to deploy.rb or deploy configs:

set :mls_ruby_capistrano_slacker_skip, true

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

The gem is available as open source under the terms of the MIT License.

mls_ruby_capistrano_slacker's People

Contributors

dmytrostepaniuk avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  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.