Gitcrypt lock with YAML

YAML parameters for Gitcrypt lock

You can find the list with common parameters for all Buddy actions here.

NameTypeDescription
action
Required
StringThe ID of the action.
type
Required
StringThe type of the action. Should be set to GIT_CRYPT_LOCK.
keys
Required
StringKey names you want to use to lock your repository.
force_argStringSet to true if you want to lock even if there is uncommitted work in pipeline filesystem.
trigger_conditionStringDefines when the build action should be run. Can be one of ALWAYS, ON_CHANGE, ON_CHANGE_AT_PATH, VAR_IS, VAR_IS_NOT or VAR_CONTAINS.

YAML example for Gitcrypt lock

actions:
- action: "Gitcrypt lock"
type: "GIT_CRYPT_LOCK"
keys:
- name: "default"
- name: "key2"
force_arg: true
trigger_condition: "ALWAYS"