YAML examples for Replace
Replace values in files
yaml
- action: "Replace values"
type: "REPLACE"
local_path: "/"
replacements:
- replace_from: "[ENV]"
replace_to: "stage"
- replace_from: "[VERSION]"
replace_to: "1.2.3"
Simple replacement
yaml
- action: "Update config"
type: "REPLACE"
local_path: "/config"
replacements:
- replace_from: "localhost"
replace_to: "production.server.com"