mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-06 17:40:58 +00:00
add support for 'reuse' mode to allow act to be used for a fast local task runner
This commit is contained in:
parent
f26a1a3f0c
commit
ff392444a4
7 changed files with 95 additions and 61 deletions
|
@ -25,6 +25,7 @@ func Execute(ctx context.Context, version string) {
|
|||
}
|
||||
rootCmd.Flags().BoolP("list", "l", false, "list actions")
|
||||
rootCmd.Flags().StringP("action", "a", "", "run action")
|
||||
rootCmd.Flags().BoolVarP(&runnerConfig.ReuseContainers, "reuse", "r", false, "reuse action containers to maintain state")
|
||||
rootCmd.Flags().StringVarP(&runnerConfig.EventPath, "event", "e", "", "path to event JSON file")
|
||||
rootCmd.PersistentFlags().BoolP("verbose", "v", false, "verbose output")
|
||||
rootCmd.PersistentFlags().BoolVarP(&runnerConfig.Dryrun, "dryrun", "n", false, "dryrun mode")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue