MLSDev / mls_ruby_capistrano_slacker

The way to organize your deploys using GitLab and Capistrano

Home Page:https://mlsdev.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

The way to organize your deploys using GitLab and Capistrano

https://mlsdev.com

License:MIT License


Languages

Language:Ruby 99.0%Language:Shell 1.0%