Skip to content

Commit

Permalink
Add buildkit to the known Dockerfile builds
Browse files Browse the repository at this point in the history
Both Kaniko and Buildkit use a Dockerfile for the build.

Add `buildkit` to the known strategies that require the `dockerfile` field.
  • Loading branch information
HeavyWombat committed Apr 8, 2021
1 parent a816c08 commit 147770f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/load/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func createBuildAnnotations(buildCfg BuildConfig) map[string]string {
func createBuildSpec(name string, buildCfg BuildConfig) (*buildv1alpha.BuildSpec, error) {
var (
dockerfile = func() *string {
if strings.Contains(buildCfg.ClusterBuildStrategy, "kaniko") {
if strings.Contains(buildCfg.ClusterBuildStrategy, "kaniko") || strings.Contains(buildCfg.ClusterBuildStrategy, "buildkit") {
return &buildCfg.SourceDockerfile
}

Expand Down

0 comments on commit 147770f

Please sign in to comment.