Skip to content

Commit 34fb4f3

Browse files
authored
Merge pull request #233 from ndeloof/no_cache
2 parents e3cf279 + d4a4c21 commit 34fb4f3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

schema/compose-spec.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@
9595
"labels": {"$ref": "#/definitions/list_or_dict"},
9696
"cache_from": {"type": "array", "items": {"type": "string"}},
9797
"cache_to": {"type": "array", "items": {"type": "string"}},
98+
"no_cache": {"type": "boolean"},
9899
"network": {"type": "string"},
100+
"pull": {"type": "boolean"},
99101
"target": {"type": "string"},
100102
"shm_size": {"type": ["integer", "string"]},
101103
"extra_hosts": {"$ref": "#/definitions/list_or_dict"},

types/types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,8 @@ type BuildConfig struct {
298298
Labels Labels `yaml:",omitempty" json:"labels,omitempty"`
299299
CacheFrom StringList `mapstructure:"cache_from" yaml:"cache_from,omitempty" json:"cache_from,omitempty"`
300300
CacheTo StringList `mapstructure:"cache_to" yaml:"cache_to,omitempty" json:"cache_to,omitempty"`
301+
NoCache bool `mapstructure:"no_cache" yaml:"no_cache,omitempty" json:"no_cache,omitempty"`
302+
Pull bool `mapstructure:"pull" yaml:"pull,omitempty" json:"pull,omitempty"`
301303
ExtraHosts HostsList `mapstructure:"extra_hosts" yaml:"extra_hosts,omitempty" json:"extra_hosts,omitempty"`
302304
Isolation string `yaml:",omitempty" json:"isolation,omitempty"`
303305
Network string `yaml:",omitempty" json:"network,omitempty"`

0 commit comments

Comments
 (0)