diff --git a/pkgs/stream_layered_image/push_layered_image.go b/pkgs/stream_layered_image/push_layered_image.go index 69e7ebd..2f48941 100644 --- a/pkgs/stream_layered_image/push_layered_image.go +++ b/pkgs/stream_layered_image/push_layered_image.go @@ -421,7 +421,12 @@ func pushCommand(_ *cobra.Command, args []string) error { return err } auth := getAuth() - id, err := pushImage(image, args[1], auth) + + url := args[0] + if os.Getenv("CN_SPEC_FILE") == "" { + url = args[1] + } + id, err := pushImage(image, url, auth) if err != nil { return err }