-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Built-in variable BAKE_LOCAL_PLATFORM
#748
Conversation
What's the benefit of this compared to "local" that is accepted by |
I have a edge case where I want to be able to know the current local platform in order to use it in an HCL function. It's not for purely dedicated build usage. But yeah it can be confusing with this name. Something like |
I guess that is fine. Could also be builtin var. We already added one for remotes and want to add another for |
fbaf4f8
to
32561e6
Compare
Yes a builtin var looks better. |
32561e6
to
3d0fb39
Compare
localplatform
HCL funcBAKE_LOCAL_PLATFORM
3d0fb39
to
1dc44d3
Compare
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
1dc44d3
to
55a3ce6
Compare
Add built-in variable
BAKE_LOCAL_PLATFORM
that returns the current platform's default platform specification (e.g.linux/amd64
).Signed-off-by: CrazyMax crazy-max@users.noreply.github.com