Files
indra/pkg/docker/config.go
greg stone b173e2a183 0 AD.
2023-01-27 18:03:42 +00:00

25 lines
434 B
Go

package docker
import (
"github.com/docker/docker/api/types"
)
type BuildConfiguration struct {
Name string
ContextFilePath string
BuildOpts types.ImageBuildOptions
PushOpts types.ImagePushOptions
}
func (self *BuildConfiguration) FixTagPrefix() []string {
var fullTags = []string{}
for _, tag := range self.BuildOpts.Tags {
fullTags = append(fullTags, self.Name+":"+tag)
}
return fullTags
}