mirror of https://github.com/harness/drone.git
use major version in image name
parent
9c9b99bd70
commit
45a3181f50
|
@ -212,7 +212,7 @@ type (
|
|||
// Runner provides the runner configuration.
|
||||
Runner struct {
|
||||
Local bool `envconfig:"DRONE_RUNNER_LOCAL"`
|
||||
Image string `envconfig:"DRONE_RUNNER_IMAGE" default:"drone/controller:1.0.0"`
|
||||
Image string `envconfig:"DRONE_RUNNER_IMAGE" default:"drone/controller:1"`
|
||||
Platform string `envconfig:"DRONE_RUNNER_PLATFORM" default:"linux/amd64"`
|
||||
OS string `envconfig:"DRONE_RUNNER_OS"`
|
||||
Arch string `envconfig:"DRONE_RUNNER_ARCH"`
|
||||
|
|
|
@ -6,16 +6,7 @@
|
|||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/drone/drone/version"
|
||||
)
|
||||
|
||||
var defaultImage = fmt.Sprintf(
|
||||
"drone/controller:%s",
|
||||
version.Version.String(),
|
||||
)
|
||||
var defaultImage = "drone/controller:1"
|
||||
|
||||
// DefaultImage returns the default dispatch image if none
|
||||
// is specified.
|
||||
|
|
Loading…
Reference in New Issue