Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions pkg/koyeb/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ func (h *ServiceHandler) addServiceDefinitionFlagsForGitSource(flags *pflag.Flag
func (h *ServiceHandler) addServiceDefinitionFlagsForDockerSource(flags *pflag.FlagSet) {
flags.String("docker", "", "Docker image")
flags.String("docker-private-registry-secret", "", "Docker private registry secret")
flags.Bool("skip-docker-verify", false, "Skip docker image verification")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docker-skip-verify to match the other flags?

flags.StringSlice("docker-entrypoint", []string{}, "Docker entrypoint. To provide multiple arguments, use the --docker-entrypoint flag multiple times.")
flags.String("docker-command", "", "Set the docker CMD explicitly. To provide arguments to the command, use the --docker-args flag.")
flags.StringSlice("docker-args", []string{}, "Set arguments to the docker command. To provide multiple arguments, use the --docker-args flag multiple times.")
Expand Down Expand Up @@ -1604,8 +1605,11 @@ func (h *ServiceHandler) parseDockerSource(ctx *CLIContext, flags *pflag.FlagSet
if flags.Lookup("docker").Changed {
image, _ := flags.GetString("docker")
source.SetImage(image)
if err := h.checkDockerImage(ctx, source); err != nil {
return nil, err
skipVerify, _ := flags.GetBool("skip-docker-verify")
if !skipVerify {
if err := h.checkDockerImage(ctx, source); err != nil {
return nil, err
}
}
}
if flags.Lookup("docker-args").Changed {
Expand Down
Loading