Skip to content

Commit d4a4c21

Browse files
committed
implement no_cache and pull
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 98c14dd commit d4a4c21

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
@@ -94,7 +94,9 @@
9494
"labels": {"$ref": "#/definitions/list_or_dict"},
9595
"cache_from": {"type": "array", "items": {"type": "string"}},
9696
"cache_to": {"type": "array", "items": {"type": "string"}},
97+
"no_cache": {"type": "boolean"},
9798
"network": {"type": "string"},
99+
"pull": {"type": "boolean"},
98100
"target": {"type": "string"},
99101
"shm_size": {"type": ["integer", "string"]},
100102
"extra_hosts": {"$ref": "#/definitions/list_or_dict"},

types/types.go

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

0 commit comments

Comments
 (0)