1bb425a882 
								
							
								 
							
						 
						
							
							
								
								bake: allow BAKE_CMD_CONTEXT builtin var  
							
							... 
							
							
							
							Allows accessing the main context for bake command from bake
file that has been imported remotely.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								ba443811e4 
								
									
								
							
								 
							
						 
						
							
							
								
								Use compose-spec parser  
							
							... 
							
							
							
							Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com> 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								79433cef7a 
								
							
								 
							
						 
						
							
							
								
								bake: fix target merge between compose and hcl  
							
							... 
							
							
							
							Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								c5eb8f58b4 
								
							
								 
							
						 
						
							
							
								
								bake: new hclparser package  
							
							... 
							
							
							
							Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								03b7128b60 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #575  from tonistiigi/user-func-vars  
							
							... 
							
							
							
							bake: allow user functions in variables and vice-versa 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								df7a318ec0 
								
							
								 
							
						 
						
							
							
								
								bake: allow user functions in variables and vice-versa  
							
							... 
							
							
							
							Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								399df854ea 
								
									
								
							
								 
							
						 
						
							
							
								
								build: split buildflags package  
							
							... 
							
							
							
							Planned to be imported by nerdctl in future.
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp> 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								eec843a325 
								
							
								 
							
						 
						
							
							
								
								include default ssh socket when given an ssh-based git url  
							
							... 
							
							
							
							Signed-off-by: Alex Couture-Beil <alex@earthly.dev> 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								83868a48b7 
								
							
								 
							
						 
						
							
							
								
								temp local copy of userfunc  
							
							... 
							
							
							
							Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								f036bba48c 
								
							
								 
							
						 
						
							
							
								
								bake: add test for json vars and attributes  
							
							... 
							
							
							
							Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								0fe2ce7fac 
								
							
								 
							
						 
						
							
							
								
								bake: allow attributes in global scope  
							
							... 
							
							
							
							Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								33f25acb08 
								
							
								 
							
						 
						
							
							
								
								bake: allow variables to reference each other  
							
							... 
							
							
							
							Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								0e9066f6ed 
								
							
								 
							
						 
						
							
							
								
								bake: fix hcl tests layout  
							
							... 
							
							
							
							Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								0e9d6460db 
								
							
								 
							
						 
						
							
							
								
								bake: allow variables across files  
							
							... 
							
							
							
							Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								dba79ba223 
								
							
								 
							
						 
						
							
							
								
								update lint to go1.16/golangci  
							
							... 
							
							
							
							Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								7878f0c514 
								
							
								 
							
						 
						
							
							
								
								bake: allow variables in user functions  
							
							... 
							
							
							
							Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								f1f464e364 
								
							
								 
							
						 
						
							
							
								
								Add setproduct function to the bake HCL  
							
							... 
							
							
							
							As explained in the following link, it's a very useful function.
https://www.terraform.io/docs/configuration/functions/setproduct.html#finding-combinations-for-for_each 
Signed-off-by: Felipe Santos <felipecassiors@gmail.com> 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								96e7f3224a 
								
									
								
							
								 
							
						 
						
							
							
								
								Extend hcl2 support with more functions  
							
							... 
							
							
							
							Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com> 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								40fad4bbb5 
								
							
								 
							
						 
						
							
							
								
								progress: make sure all channels have written before returning  
							
							... 
							
							
							
							Possible write on closed channel on cancellation before.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								5bf2ff98c9 
								
							
								 
							
						 
						
							
							
								
								bake: support filenames without suffix  
							
							... 
							
							
							
							Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								570e733a51 
								
							
								 
							
						 
						
							
							
								
								bake: support inline dockerfile  
							
							... 
							
							
							
							Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								cffcd57edb 
								
							
								 
							
						 
						
							
							
								
								bake: support for remote files  
							
							... 
							
							
							
							Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								abfb2c064d 
								
							
								 
							
						 
						
							
							
								
								Add support for empty strings in target elements and compact func.  
							
							... 
							
							
							
							Signed-off-by: Anthony Poschen <zanven42@gmail.com> 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								95ac9ebb8a 
								
							
								 
							
						 
						
							
							
								
								bake: format hcl errors with source definition  
							
							... 
							
							
							
							Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								42448c5f37 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #280  from vanstee/hcl-json-support  
							
							... 
							
							
							
							Support parsing json config with hcl v2 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								355261e49e 
								
									
								
							
								 
							
						 
						
							
							
								
								Parse bake config as hcl falling back to json  
							
							... 
							
							
							
							Signed-off-by: Patrick Van Stee <patrick@vanstee.me> 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								44c840b31d 
								
									
								
							
								 
							
						 
						
							
							
								
								Add test of parsing a json bake config  
							
							... 
							
							
							
							Signed-off-by: Patrick Van Stee <patrick@vanstee.me> 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								1bc068a583 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix json keys for groups and targets  
							
							... 
							
							
							
							Signed-off-by: Patrick Van Stee <patrick@vanstee.me> 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								340686a383 
								
									
								
							
								 
							
						 
						
							
							
								
								Support parsing json config with hcl v2  
							
							... 
							
							
							
							Signed-off-by: Patrick Van Stee <patrick@vanstee.me> 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								1ad87c6ba6 
								
							
								 
							
						 
						
							
							
								
								Update go-cty to pull in more stdlib funcs.  
							
							... 
							
							
							
							I needed "split" specifically so I can do something like:
```hcl
variable PLATFORMS {
  default = "linux/amd64"
}
target foo {
  platforms = split(",", "${PLATFORMS}")
  # other stuff
}
```
Where the existing "csvdecode" does not work for this because it parses
the string into a list of objects instead of a list of strings.
I went ahead and just added all the available new functions.
Signed-off-by: Brian Goff <cpuguy83@gmail.com> 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								77ddee9314 
								
							
								 
							
						 
						
							
							
								
								bake: fix pull and no-cache overrides  
							
							... 
							
							
							
							Signed-off-by: Tibor Vass <tibor@docker.com> 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								c9676c79d1 
								
							
								 
							
						 
						
							
							
								
								bake: fix hcl tags  
							
							... 
							
							
							
							Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								870b38837b 
								
							
								 
							
						 
						
							
							
								
								Allow for user defined functions  
							
							... 
							
							
							
							Signed-off-by: Patrick Van Stee <patrick@vanstee.me> 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								abed97cf33 
								
							
								 
							
						 
						
							
							
								
								Include test cases of different hcl files  
							
							... 
							
							
							
							Signed-off-by: Patrick Van Stee <patrick@vanstee.me> 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								f10d8dab5e 
								
							
								 
							
						 
						
							
							
								
								Define variables as blocks with defaults  
							
							... 
							
							
							
							Signed-off-by: Patrick Van Stee <patrick@vanstee.me> 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								5185d534bc 
								
							
								 
							
						 
						
							
							
								
								Include go-cty stdlib functions in HCL file scope  
							
							... 
							
							
							
							Signed-off-by: Patrick Van Stee <patrick@vanstee.me> 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								a520de447e 
								
							
								 
							
						 
						
							
							
								
								Provide current env as variables in eval context  
							
							... 
							
							
							
							Signed-off-by: Patrick Van Stee <patrick@vanstee.me> 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								4121ae50b5 
								
							
								 
							
						 
						
							
							
								
								Modify parsing functions and config structs to accept hcl changes  
							
							... 
							
							
							
							Signed-off-by: Patrick Van Stee <patrick@vanstee.me> 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								2a257a8252 
								
							
								 
							
						 
						
							
							
								
								bake: allow overriding no-cache and pull per target via --set  
							
							... 
							
							
							
							Signed-off-by: Tibor Vass <tibor@docker.com> 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								078b65905a 
								
							
								 
							
						 
						
							
							
								
								bake: add test cases for pattern matching  
							
							... 
							
							
							
							Signed-off-by: Tibor Vass <tibor@docker.com> 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								2bca8fa677 
								
							
								 
							
						 
						
							
							
								
								bake: allow pattern matching for target names in --set  
							
							... 
							
							
							
							Although bake is for running multiple targets, --set required a single
target name for overriding a property. This change allows matching
multiple targets for overrides.
Signed-off-by: Tibor Vass <tibor@docker.com> 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								14e65ff3b4 
								
							
								 
							
						 
						
							
							
								
								bake: fix override+inheritance bug  
							
							... 
							
							
							
							Signed-off-by: Tibor Vass <tibor@docker.com> 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								3282dae09b 
								
							
								 
							
						 
						
							
							
								
								bake: add tests for override+inheritance bug  
							
							... 
							
							
							
							Signed-off-by: Tibor Vass <tibor@docker.com> 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								6634f1e75c 
								
							
								 
							
						 
						
							
							
								
								Support reading from env on bake --set <t>.args  
							
							... 
							
							
							
							This works just like the `build` command where if you have `--build-arg
FOO`, it will read the variable from env and only set a value if the
variable is defined.
Signed-off-by: Brian Goff <cpuguy83@gmail.com> 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								15a5a42eb1 
								
							
								 
							
						 
						
							
							
								
								bake: merge targets on same groups  
							
							... 
							
							
							
							Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								8b2171f78a 
								
							
								 
							
						 
						
							
							
								
								bake: honor --no-cache and --pull  
							
							... 
							
							
							
							Signed-off-by: Tibor Vass <tibor@docker.com> 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								92f1234aaa 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #116  from tonistiigi/build-arg-default  
							
							... 
							
							
							
							build: load default build args from env 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								662c0768cb 
								
							
								 
							
						 
						
							
							
								
								bake: replace env in compose files  
							
							... 
							
							
							
							Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								43150ef849 
								
							
								 
							
						 
						
							
							
								
								build: load default build args from env  
							
							... 
							
							
							
							Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> 
							
						 
						
							6 years ago  
				
					
						
							
							
								 
						
							
							
								b741350afd 
								
							
								 
							
						 
						
							
							
								
								bake: compose parser should only error if there are neither build nor image fields  
							
							... 
							
							
							
							Signed-off-by: Tibor Vass <tibor@docker.com> 
							
						 
						
							7 years ago