File Revision
Generates a revision string for a set of files.
This step creates a revision string for the specified set of files and is intended to be used for detecting changes in configuration files. The step supports glob patterns. The files' mode, ownership and contents are included in the hash.
The step sets a runtime variable that changes whenever the files' contents are updated. This can be used to automatically redeploy services when the files change.
Params
| Param | Description |
|---|---|
FILES | Space separated list of file patterns to be included (shell syntax) (string) |
REVISION_VAR | Name of a runtime variable for setting the files' revision to - this value can for example be applied to related containers as an environment variable in order to automatically update them when a file changes (default: FILE_REV) (string) |