mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-01 17:38:36 +00:00
add forgeinstance
This commit is contained in:
parent
9c7d2be7c6
commit
378966e45f
7 changed files with 28 additions and 22 deletions
|
@ -33,7 +33,7 @@ func initLogging(cfg config.Config) {
|
|||
}
|
||||
|
||||
func Execute(ctx context.Context) {
|
||||
task := runtime.NewTask(0, nil)
|
||||
task := runtime.NewTask("gitea", 0, nil)
|
||||
|
||||
// ./act_runner
|
||||
rootCmd := &cobra.Command{
|
||||
|
@ -54,7 +54,7 @@ func Execute(ctx context.Context) {
|
|||
Aliases: []string{"daemon"},
|
||||
Use: "execute runner daemon",
|
||||
Args: cobra.MaximumNArgs(1),
|
||||
RunE: runDaemon(ctx, task),
|
||||
RunE: runDaemon(ctx, task.Input.EnvFile),
|
||||
}
|
||||
// add all command
|
||||
rootCmd.AddCommand(daemonCmd)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue