mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-18 08:26:45 +02:00
9bd7706ca3
Using this piece of YAML: ``` deploy: bash: command: 'bundle exec cap production deploy' ``` Will run Capistrano and deploy your app to production. You can use any other deployment tool instead of Capistrano.
14 lines
211 B
Go
14 lines
211 B
Go
package deploy
|
|
|
|
import (
|
|
"github.com/drone/drone/pkg/build/buildfile"
|
|
)
|
|
|
|
type Bash struct {
|
|
Command string `yaml:"command,omitempty"`
|
|
}
|
|
|
|
func (g *Bash) Write(f *buildfile.Buildfile) {
|
|
f.WriteCmd(g.Command)
|
|
}
|