rendering()

Report whether a render pass is in progress.

Usage

Source

rendering()

Returns True while Dockerfile.render is re-executing a recipe, and False during the discovery import. Use it to guard code that should run only when the build is live.

Returns

bool
True during the render pass, False during discovery.