Skip to content

bake: allow variables to reference each other#539

Merged
AkihiroSuda merged 2 commits into
docker:masterfrom
tonistiigi:vars-cross-refs
Mar 19, 2021
Merged

bake: allow variables to reference each other#539
AkihiroSuda merged 2 commits into
docker:masterfrom
tonistiigi:vars-cross-refs

Conversation

@tonistiigi

Copy link
Copy Markdown
Member

depends on #538 #532

Allows variables to refer to other variables like the target blocks can. Stdlib functions can also be called. User functions can't atm. , I think changes are needed in upstream to support that.

Non-string variables are also now accepted. The value passed with env is parsed into suitable type first.

@vanstee @crazy-max

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@AkihiroSuda
AkihiroSuda merged commit 28809b8 into docker:master Mar 19, 2021
@crazy-max crazy-max mentioned this pull request Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants