drone-capistrano

command module
v0.0.0-...-eb23471 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

README

Drone Capistrano Plugin Build Status

This is the Capistrano plugin for the Drone continuous integration platform. Use this plugin to deploy applications with Capistrano.

Config

The following parameters are used to configure the plugin:

  • capistrano_private_key - Private SSH deploy key
  • capistrano_public_key - Public SSH deploy key
  • tasks - The Capistrano tasks to run

The following secret values can be set to configure the plugin.

  • CAPISTRANO_PRIVATE_KEY - corresponds to capistrano_private_key
  • CAPISTRANO_PUBLIC_KEY - corresponds to capistrano_public_key

It is highly recommended to put CAPISTRANO_PRIVATE_KEY into a secret so it is not exposed to users. This can be done using the drone-cli.

drone secret add \
  --name capistrano_private_key \
  --value @$HOME/.ssh/drone-deploy \
  --image glaszig/drone-capistrano
  --repository octocat/hello-world

drone secret add \
  --name capistrano_public_key \
  --value @$HOME/.ssh/drone-deploy.pub \
  --image glaszig/drone-capistrano
  --repository octocat/hello-world

See secrets for additional information on secrets

Examples

The following is a sample configuration in your .drone.yml file:

pipeline:
  deploy:
    image: glaszig/drone-capistrano
    repo: octocat/hello-world
    tasks: production deploy
    secrets:
      - capistrano_private_key
      - capistrano_public_key
    when:
      event: push

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL