You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking for a way to access the current time (or build time) in my docker-bake.hcl file but couldn't find an obvious way to do so.
There are some cty stdlib functions that work on timestamps (e.g. timeAdd, formatDate) but no obvious way to get the current time. I would suggest adding a wrapper function for time.Now() or maybe a builtin variable to access the build time.
Environment:
buildx v0.8.2
buildkit v0.10.3
The text was updated successfully, but these errors were encountered:
I was looking for a way to access the current time (or build time) in my docker-bake.hcl file but couldn't find an obvious way to do so.
There are some cty stdlib functions that work on timestamps (e.g.
timeAdd
,formatDate
) but no obvious way to get the current time. I would suggest adding a wrapper function fortime.Now()
or maybe a builtin variable to access the build time.Environment:
The text was updated successfully, but these errors were encountered: