forked from Ivasoft/github-actions
Fixed no_force_pull
This commit is contained in:
32
cmd/main.go
32
cmd/main.go
@@ -76,6 +76,11 @@ func main() {
|
||||
Value: "node:16-buster-slim",
|
||||
EnvVar: "PLUGIN_ACTION_IMAGE",
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "no-force-pull",
|
||||
Usage: "disable forced pulling in act",
|
||||
EnvVar: "PLUGIN_NO_FORCE_PULL",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "event-payload",
|
||||
Usage: "Webhook event payload",
|
||||
@@ -188,23 +193,24 @@ func run(c *cli.Context) error {
|
||||
Env: actionEnv,
|
||||
Verbose: c.Bool("action-verbose"),
|
||||
Image: c.String("action-image"),
|
||||
NoForcePull: c.Bool("no-force-pull"),
|
||||
EventPayload: c.String("event-payload"),
|
||||
Actor: c.String("actor"),
|
||||
},
|
||||
Daemon: daemon.Daemon{
|
||||
Registry: c.String("docker.registry"),
|
||||
Mirror: c.String("daemon.mirror"),
|
||||
StorageDriver: c.String("daemon.storage-driver"),
|
||||
StoragePath: c.String("daemon.storage-path"),
|
||||
Insecure: c.Bool("daemon.insecure"),
|
||||
Disabled: c.Bool("daemon.off"),
|
||||
IPv6: c.Bool("daemon.ipv6"),
|
||||
Debug: c.Bool("daemon.debug"),
|
||||
Bip: c.String("daemon.bip"),
|
||||
DNS: c.StringSlice("daemon.dns"),
|
||||
DNSSearch: c.StringSlice("daemon.dns-search"),
|
||||
MTU: c.String("daemon.mtu"),
|
||||
Experimental: c.Bool("daemon.experimental"),
|
||||
Registry: c.String("docker.registry"),
|
||||
Mirror: c.String("daemon.mirror"),
|
||||
StorageDriver: c.String("daemon.storage-driver"),
|
||||
StoragePath: c.String("daemon.storage-path"),
|
||||
Insecure: c.Bool("daemon.insecure"),
|
||||
Disabled: c.Bool("daemon.off"),
|
||||
IPv6: c.Bool("daemon.ipv6"),
|
||||
Debug: c.Bool("daemon.debug"),
|
||||
Bip: c.String("daemon.bip"),
|
||||
DNS: c.StringSlice("daemon.dns"),
|
||||
DNSSearch: c.StringSlice("daemon.dns-search"),
|
||||
MTU: c.String("daemon.mtu"),
|
||||
Experimental: c.Bool("daemon.experimental"),
|
||||
NotHiddenSocket: c.Bool("not.hidden.socket"),
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user