Skip to content

Commit

Permalink
feat(skaffold/schema): add BazelConfig to latest.LocalBuild
Browse files Browse the repository at this point in the history
  • Loading branch information
ar3s3ru committed Dec 21, 2023
1 parent 6632e12 commit ecf7199
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pkg/skaffold/schema/latest/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ type LocalBuild struct {
// connects to a remote cluster.
Push *bool `yaml:"push,omitempty"`

// BazelConfig contains some configuration to apply to `bazel` commands
// when building `BazelArtifact` targets locally.
BazelConfig *BazelConfig `yaml:"bazel,omitempty"`

// TryImportMissing whether to attempt to import artifacts from
// Docker (either a local or remote registry) if not in the cache.
TryImportMissing bool `yaml:"tryImportMissing,omitempty"`
Expand All @@ -342,6 +346,16 @@ type LocalBuild struct {
Concurrency *int `yaml:"concurrency,omitempty"`
}

// BazelConfig contains some configuration to apply to `bazel` commands
// when building `BazelArtifact` targets locally.
type BazelConfig struct {
// BuildArgs are args to pass to `bazel build` for all the `bazel` targets
// in the build step.
//
// For example: `["-flag", "--otherflag"]`.
BuildArgs []string `yaml:"args,omitempty"`
}

// GoogleCloudBuild *beta* describes how to do a remote build on
// [Google Cloud Build](https://cloud.google.com/cloud-build/docs/).
// Docker and Jib artifacts can be built on Cloud Build. The `projectId` needs
Expand Down

0 comments on commit ecf7199

Please sign in to comment.