bump runner-go library to v1.3.0
This commit is contained in:
@@ -35,10 +35,10 @@ type Config struct {
|
||||
}
|
||||
|
||||
Server struct {
|
||||
Proto string `envconfig:"DRONE_SERVER_PROTO"`
|
||||
Host string `envconfig:"DRONE_SERVER_HOST"`
|
||||
Port string `envconfig:"DRONE_SERVER_PORT" default:":3000"`
|
||||
Acme bool `envconfig:"DRONE_SERVER_ACME"`
|
||||
Port string `envconfig:"DRONE_HTTP_BIND" default:":3000"`
|
||||
Proto string `envconfig:"DRONE_HTTP_PROTO"`
|
||||
Host string `envconfig:"DRONE_HTTP_HOST"`
|
||||
Acme bool `envconfig:"DRONE_HTTP_ACME"`
|
||||
}
|
||||
|
||||
Keypair struct {
|
||||
@@ -105,23 +105,27 @@ type Config struct {
|
||||
// variable name, and the value is the new variable name.
|
||||
var legacy = map[string]string{
|
||||
"DRONE_MACHINE": "DRONE_RUNNER_NAME",
|
||||
// registry settings
|
||||
"DRONE_RUNNER_OS": "DRONE_PLATFORM_OS",
|
||||
"DRONE_RUNNER_ARCH": "DRONE_PLATFORM_ARCH",
|
||||
"DRONE_RUNNER_KERNEL": "DRONE_PLATFORM_KERNEL",
|
||||
"DRONE_RUNNER_VARIANT": "DRONE_PLATFORM_VARIANT",
|
||||
"DRONE_REGISTRY_ENDPOINT": "DRONE_REGISTRY_PLUGIN_ENDPOINT",
|
||||
"DRONE_REGISTRY_SECRET": "DRONE_REGISTRY_PLUGIN_SECRET",
|
||||
"DRONE_REGISTRY_SKIP_VERIFY": "DRONE_REGISTRY_PLUGIN_SKIP_VERIFY",
|
||||
// secret settings
|
||||
"DRONE_SECRET_ENDPOINT": "DRONE_SECRET_PLUGIN_ENDPOINT",
|
||||
"DRONE_SECRET_SECRET": "DRONE_SECRET_PLUGIN_TOKEN",
|
||||
"DRONE_SECRET_SKIP_VERIFY": "DRONE_SECRET_PLUGIN_SKIP_VERIFY",
|
||||
// resource settings
|
||||
"DRONE_LIMIT_MEM_SWAP": "DRONE_MEMORY_SWAP_LIMIT",
|
||||
"DRONE_LIMIT_MEM": "DRONE_MEMORY_LIMIT",
|
||||
"DRONE_LIMIT_CPU_QUOTA": "DRONE_CPU_QUOTA",
|
||||
"DRONE_LIMIT_CPU_SHARES": "DRONE_CPU_SHARES",
|
||||
"DRONE_LIMIT_CPU_SET": "DRONE_CPU_SET",
|
||||
// logger settings
|
||||
"DRONE_LOGS_DEBUG": "DRONE_DEBUG",
|
||||
"DRONE_LOGS_TRACE": "DRONE_TRACE",
|
||||
"DRONE_SERVER_PROTO": "DRONE_HTTP_PROTO",
|
||||
"DRONE_SERVER_HOST": "DRONE_HTTP_HOST",
|
||||
"DRONE_SERVER_PORT": "DRONE_HTTP_BIND",
|
||||
"DRONE_SERVER_ACME": "DRONE_HTTP_ACME",
|
||||
}
|
||||
|
||||
func fromEnviron() (Config, error) {
|
||||
|
||||
2
go.mod
2
go.mod
@@ -13,7 +13,7 @@ require (
|
||||
github.com/docker/go-connections v0.3.0 // indirect
|
||||
github.com/drone/drone-go v1.0.5-0.20190504210458-4d6116b897ba
|
||||
github.com/drone/envsubst v1.0.2
|
||||
github.com/drone/runner-go v1.2.3-0.20191031003804-fcde0c5625b9
|
||||
github.com/drone/runner-go v1.3.0
|
||||
github.com/drone/signal v1.0.0
|
||||
github.com/ghodss/yaml v1.0.0
|
||||
github.com/gogo/protobuf v0.0.0-20170307180453-100ba4e88506 // indirect
|
||||
|
||||
4
go.sum
4
go.sum
@@ -36,6 +36,10 @@ github.com/drone/runner-go v1.2.3-0.20191022224645-c23a30094df2 h1:cWCxBb42XWdTX
|
||||
github.com/drone/runner-go v1.2.3-0.20191022224645-c23a30094df2/go.mod h1:GvB5hX023g0n5UZUjMBmudk6givdDDuLcls7Nolm5v8=
|
||||
github.com/drone/runner-go v1.2.3-0.20191031003804-fcde0c5625b9 h1:cInMHvQe7n3KBwBJyH1Otw8MbPDDBxtMskWY/kISbxY=
|
||||
github.com/drone/runner-go v1.2.3-0.20191031003804-fcde0c5625b9/go.mod h1:61VgQWhZbNPXp01lBuR7PAztTMySGLnMzK/4oYE3D9Y=
|
||||
github.com/drone/runner-go v1.2.3-0.20191031202840-a11193321443 h1:uu8lbyWKBx0Y1ycE/RQBP9d5yJ1/bDEyh/DfHV/SMh0=
|
||||
github.com/drone/runner-go v1.2.3-0.20191031202840-a11193321443/go.mod h1:61VgQWhZbNPXp01lBuR7PAztTMySGLnMzK/4oYE3D9Y=
|
||||
github.com/drone/runner-go v1.3.0 h1:RGJIk7vbvxdfd3wFyiP4XkLO+b5esCLg1aFUCIHISeE=
|
||||
github.com/drone/runner-go v1.3.0/go.mod h1:61VgQWhZbNPXp01lBuR7PAztTMySGLnMzK/4oYE3D9Y=
|
||||
github.com/drone/signal v1.0.0 h1:NrnM2M/4yAuU/tXs6RP1a1ZfxnaHwYkd0kJurA1p6uI=
|
||||
github.com/drone/signal v1.0.0/go.mod h1:S8t92eFT0g4WUgEc/LxG+LCuiskpMNsG0ajAMGnyZpc=
|
||||
github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=
|
||||
|
||||
Reference in New Issue
Block a user