Skip to main content
format(format, args...) produces a string by substituting values into a format template. It follows the same conventions as printf in most languages.

Signature

Format verbs

Example

Build a Docker image tag with zero-padded build numbers:
With build_number = 7, computed.image_tag becomes api-build-0007.

Notes

  • format is most useful when you need padding, alignment, or number formatting. For simple concatenation, string interpolation (${}) is more readable.
  • An incorrect number of arguments or incompatible types produce an error at evaluation time.