2023-02-28 18:44:46 +08:00
|
|
|
// Copyright 2022 The Gitea Authors. All rights reserved.
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
2022-04-27 17:45:53 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"os/signal"
|
2022-07-12 17:37:48 +08:00
|
|
|
"syscall"
|
2022-04-27 17:45:53 +08:00
|
|
|
|
2023-04-04 21:32:04 +08:00
|
|
|
"gitea.com/gitea/act_runner/internal/app/cmd"
|
2022-04-27 17:45:53 +08:00
|
|
|
)
|
|
|
|
|
2022-07-13 13:44:14 +08:00
|
|
|
func main() {
|
2023-04-04 21:32:04 +08:00
|
|
|
ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
|
|
|
|
defer stop()
|
2022-04-27 17:45:53 +08:00
|
|
|
// run the command
|
|
|
|
cmd.Execute(ctx)
|
|
|
|
}
|