Some checks failed
Build and publish the docker image / build (push) Failing after 1m8s
Signed-off-by: ngn <ngn@ngn.tf>
16 lines
192 B
Go
16 lines
192 B
Go
package data
|
|
|
|
import (
|
|
"fmt"
|
|
"net/url"
|
|
)
|
|
|
|
func ExtractImageURL(image string) string {
|
|
u, err := url.Parse(image)
|
|
if err != nil {
|
|
return ""
|
|
}
|
|
|
|
return fmt.Sprintf("/images%s", u.Path)
|
|
}
|