.slashdeploy.yml

The complete reference on the SlashDeploy configuration file.

SlashDeploy configuration is managed through a .slashdeploy.yml file in the root of your repository. Any change to this file is picked and applied by SlashDeploy automatically, upon a Git push to the respective GitHub repository.

Below is a sample configuration file with all the available configs:

.slashdeploy.yml
---
version: 1
default_environment: staging
default_channel: deploy

environments:
  production:
    channel: production
    aliases:
      - prod
    checks:
      - ci/circleci
      - codeclimate/total-coverage
    auto_deploy:
      ref: refs/heads/master
      skip_deploy_warning: false
    payload: '{"config": {"provider": "capistrano"}}'
  
  staging:
    default_ref: develop
    respond_in_channel: false
    locking_enabled: false
    aliases:
      - stage
    checks:
      - ci/circleci
    auto_deploy:
      ref: refs\/heads\/dev.+
    payload: '{"config": {"provider": "capistrano"}}'

usage: |
  *Usage doc on how to deploy this repo:*
  
  You can even use Slack formatting with emojis :raised_hands:

Available configs

Global

Global configuration applied to all SlashDeploy operations and environments.

Environment

Environment-specific configuration.

Last updated