mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-02 14:46:31 +00:00
18 lines
328 B
Go
18 lines
328 B
Go
package deploy
|
|
|
|
import (
|
|
"github.com/drone/drone/pkg/build/buildfile"
|
|
)
|
|
|
|
type Bash struct {
|
|
Script []string `yaml:"script,omitempty"`
|
|
Command string `yaml:"command,omitempty"`
|
|
}
|
|
|
|
func (g *Bash) Write(f *buildfile.Buildfile) {
|
|
g.Script = append(g.Script, g.Command)
|
|
|
|
for _, cmd := range g.Script {
|
|
f.WriteCmd(cmd)
|
|
}
|
|
}
|