mirror of
https://gitea.com/gitea/act_runner.git
synced 2026-08-08 01:35:03 +02:00
add ACT_EXEC (#246)
Add env variable to distinguish build run locally from remote one. Co-authored-by: Jason Song <[email protected]> Reviewed-on: https://gitea.com/gitea/act_runner/pulls/246 Reviewed-by: Jason Song <[email protected]> Co-authored-by: Tomasz Duda <[email protected]> Co-committed-by: Tomasz Duda <[email protected]>
This commit is contained in:
committed by
Jason Song
co-authored by
Jason Song
parent
2e2c0400c8
commit
32d29f0813
@@ -414,6 +414,8 @@ func runExec(ctx context.Context, execArgs *executeArgs) func(cmd *cobra.Command
|
||||
ValidVolumes: []string{"**"}, // All volumes are allowed for `exec` command
|
||||
}
|
||||
|
||||
config.Env["ACT_EXEC"] = "true"
|
||||
|
||||
if !execArgs.debug {
|
||||
logLevel := log.Level(log.InfoLevel)
|
||||
config.JobLoggerLevel = &logLevel
|
||||
|
||||
Reference in New Issue
Block a user