Restrict certain tasks to certain servers ✨
You may have situations where you only want to deploy to servers matching certain criteria. For example, you may have changed some aspect of how the web role works, but don’t want to trigger a deployment to your database servers.
originally inspired by Capistrano
**** Currently this requires shipit-bastion as well ***
The methods needed in the ssh pool are part of ssh-proxy-pool. Currently that means you need to include shipit-bastion before this plugin to use it.
The server configuration in shipit will take an object.
servers:user: "be"host: "www.brokerageengine.com"roles: "app" "db"
By setting these flags you can define a method like following to be true if the server is a dbServer
connectiondbServer === true
The plugin adds
Each of them takes a condition function as the first argument
const isRole = connectionoptions &&connectionoptionsremote &&connectionoptionsremoteroles &&connectionoptionsremoterolesconst isAppServer =const isDBServer =shipit;};
MIT © 2019 Brokerage Engine, Inc