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