Skip to content

Commit

Permalink
fix push with CN_SPEC_FILE set
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickvP committed Apr 10, 2024
1 parent 0dc86ca commit 4f49673
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkgs/stream_layered_image/push_layered_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 4f49673

Please sign in to comment.