The checksum hook calculates a checksum from a specified directory. The checksum is calculated recursively, i.e. all files and directories under the specified directory are included in the checksum.
Here are the properties of the Checksum hook:
|type||yes||string||Type of the hook, this must be checksum.|
|name||yes||string||Name of the hook.|
|dir||yes||string||Path to the directory from where the checksum should be calculated. The path can be absolute or relative to the project directory.|
|encoding||no||string||Encoding used to encode the calculated checksum. Supported values are base64 (default) and hex.|
|operation||no||string||Operations during which the hook should be executed. Supported operations are: |
|stage||no||string||Stages during which the hook should be executed. Supported values are: |
|status||no||string||Statuses during which the hook should be executed. Available on when stage is after. Supported values are: |
Calculate a checksum from a directory lambda/scripts located in the project directory.
- name: my-checksum
The same as above but using the hex encoding.
- name: my-hex-checksum