Optionally no pulling using NoForcePull
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-08-22 17:25:33 +02:00
parent 923123169b
commit 6698f5978a

View File

@@ -38,6 +38,7 @@ type (
EventPayload string // Webhook event payload
Actor string
Verbose bool
NoForcePull bool
}
Plugin struct {
@@ -92,6 +93,10 @@ func (p Plugin) Exec() error {
cmdArgs = append(cmdArgs, "-v")
}
if p.Action.NoForcePull {
cmdArgs = append(cmdArgs, "--pull", "false")
}
if p.Daemon.Disabled {
hostWorkDirPath, guestWorkDirPath, err := getWorkDirPath(p, context.Background())
if err != nil {