Store agent ID in config file (#1888)

This commit is contained in:
Timo Tomasini
2023-07-02 17:22:05 +02:00
committed by GitHub
parent 0e25d6d35a
commit eb5c48a85f
8 changed files with 145 additions and 2 deletions

View File

@@ -67,6 +67,12 @@ var flags = []cli.Flag{
Name: "hostname",
Usage: "agent hostname",
},
&cli.StringFlag{
EnvVars: []string{"WOODPECKER_AGENT_ID_FILE"},
Name: "agent-id-config-path",
Usage: "agent-id config file path",
Value: "/etc/woodpecker/agent-id.conf",
},
&cli.StringSliceFlag{
EnvVars: []string{"WOODPECKER_FILTER_LABELS"},
Name: "filter",