We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0199ab6 + c232c85 commit e43f996Copy full SHA for e43f996
Makefile
@@ -80,3 +80,9 @@ change-ocp-version:
80
# This target require teraform-docs, follow the installation guide: https://terraform-docs.io/user-guide/installation/
81
terraform-docs:
82
bash scripts/terraform-docs.sh
83
+
84
+.PHONY: change-module-version
85
+# Example for running: make change-module-version MODULE_VERSION=1.7.0
86
+change-module-version:
87
+ find ./examples -type f -name '*.tf' -exec sed -i 's^source\s*= "\.\./\.\./"^source = "terraform-redhat/rosa-hcp/rhcs"\n version = "${MODULE_VERSION}"^g' -- {} +
88
+ find ./examples -type f -name '*.tf' -exec sed -E -i 's^source\s*= "\.\./\.\./modules/([^"]+)"^source = "terraform-redhat/rosa-hcp/rhcs//modules/\1"\n version = "${MODULE_VERSION}"^g' -- {} +
0 commit comments