Allow configuration via environment variables #132
Labels
No labels
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: forgejo/runner#132
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
It's sometimes easier (eg Kubernetes) to configure the runner via environment variables instead of a config file.
I would suggest a syntax like the docker registry uses.
So an variable like
RUNNER__FETCH_INTERVAL=5s
andRUNNER__LABELS__0=some
would become this config:I think this is a great addition. The example provided for a k8s deployment can also be further improved by mounting a ConfigMap:
and on the deployment:
The important parts are the
volumeMount
to mount the ConfigMap to/data/config.yaml
on the runner pod and thevolume
definition.I'm doing something like that now 😉