harness-drone/scheduler/internal/image.go

19 lines
422 B
Go
Raw Normal View History

2019-02-19 23:56:41 +00:00
// Copyright 2019 Drone.IO Inc. All rights reserved.
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
// +build !oss
2019-02-19 23:56:41 +00:00
package internal
2019-12-13 16:14:10 +00:00
var defaultImage = "drone/controller:1"
2019-02-19 23:56:41 +00:00
// DefaultImage returns the default dispatch image if none
// is specified.
func DefaultImage(image string) string {
if image == "" {
return defaultImage
}
return image
}