trim source url if its set to github.com/
This commit is contained in:
parent
92571db693
commit
512df2628f
@ -247,8 +247,9 @@ func (k *kubernetes) Init(opts ...runtime.Option) error {
|
||||
o(&k.options)
|
||||
}
|
||||
|
||||
// trim the source prefix if its a git url
|
||||
if strings.HasPrefix(k.options.Source, "github.com") {
|
||||
return errors.New("invalid source provided to kubernetes runtime, expected docker image")
|
||||
k.options.Source = strings.TrimPrefix(k.options.Source, "github.com/")
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user