Skip to content

Commit

Permalink
adjusted the string to search for in the error message
Browse files Browse the repository at this point in the history
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
tcurdt and caarlos0 committed Nov 4, 2023
1 parent bd149ac commit 1bd8190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pipe/docker/docker.go
Expand Up @@ -266,7 +266,7 @@ func isFileNotFoundError(out string) bool {
}

func isBuildxContextError(out string) bool {
return strings.Contains(out, "buildx to switch to context")
return strings.Contains(out, "to switch to context")
}

func processImageTemplates(ctx *context.Context, docker config.Docker) ([]string, error) {
Expand Down

0 comments on commit 1bd8190

Please sign in to comment.