Refactor environment variables to configuration and registration #90
No reviewers
Labels
No Label
kind
bug
kind
build
kind/compatible
kind
dependencies
kind
docs
kind
enhancement
kind
feature
kind
help wanted
kind
proposal
kind
refactor
related
act
related
environment
related
exec
related
gitea
related
workflow
reviewed
confirmed
reviewed
duplicate
reviewed
invalid
reviewed
needs feedback
reviewed
wontfix
reviewed
workaround
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/act_runner#90
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "wolfogre/act_runner:feature/config"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Close #21.
Refactor environment variables to configuration file (config.yaml) and registration file (.runner).
The old environment variables are still supported, but warning logs will be printed.
Like:
WIP: Refactor environment variables to configuration and registrationto Refactor environment variables to configuration and registration@ -59,3 +59,3 @@
- -trimpath
ldflags:
- -s -w -X gitea.com/gitea/act_runner/cmd.version={{ .Version }}
- -s -w -X gitea.com/gitea/act_runner/cmd.version={{ .Summary }}
.Summary
meanscmd.version
?@ -0,0 +31,4 @@
cfg.Log.Level = "debug"
}
}
if v, ok := handleEnv("GITEA_TRACE"); ok {
GITEA_RUNNER_LOGLEVEL
?And it seems that other env vars all have
GITEA_RUNNER_
prefix.@ -59,3 +59,3 @@
- -trimpath
ldflags:
- -s -w -X gitea.com/gitea/act_runner/cmd.version={{ .Version }}
- -s -w -X gitea.com/gitea/act_runner/cmd.version={{ .Summary }}
@wxiaoguang
.Summary the git summary, e.g. v1.0.0-10-g34f56g35
See https://goreleaser.com/customization/templates/
@ -0,0 +31,4 @@
cfg.Log.Level = "debug"
}
}
if v, ok := handleEnv("GITEA_TRACE"); ok {
@wxiaoguang
Never mind, it's a legacy. I want to drop all those envs, so I don't care if it need a better name.
@ -59,3 +59,3 @@
- -trimpath
ldflags:
- -s -w -X gitea.com/gitea/act_runner/cmd.version={{ .Version }}
- -s -w -X gitea.com/gitea/act_runner/cmd.version={{ .Summary }}
test