Skip to content

Commit

Permalink
buildinfo: build-context support
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max committed Feb 18, 2022
1 parent a08d2ea commit 828bcb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/buildinfo/buildinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ func filterAttrs(attrs map[string]*string) map[string]*string {
if isControlArg(k) {
continue
}
// Always include args and labels
if strings.HasPrefix(k, "build-arg:") || strings.HasPrefix(k, "label:") {
// Always include
if strings.HasPrefix(k, "build-arg:") || strings.HasPrefix(k, "context:") || strings.HasPrefix(k, "label:") {
filtered[k] = v
continue
}
Expand Down

0 comments on commit 828bcb7

Please sign in to comment.