diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 11c214741..3a3f0d7ac 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -16,3 +16,5 @@ # Cloud Posse must review any changes to GitHub templates actions templates/.github/* @cloudposse/engineering templates/terraform/.github/* @cloudposse/engineering +**/.gomplate.* @cloudposse/admins +**/configs/gomplate.yaml @cloudposse/admins diff --git a/bin/codefresh-sync.sh b/bin/codefresh-sync.sh index 468bde9a1..aaad39195 100755 --- a/bin/codefresh-sync.sh +++ b/bin/codefresh-sync.sh @@ -59,7 +59,7 @@ ${CODEFRESH_CLI} get pipelines ${PIPELINE_FULLNAME} > /dev/null 2>&1 PIPELINE_IS_NEW=$? ## Generate pipeline from template -gomplate -f templates/${ACCOUNT}/${PIPELINE}.yaml -d repository=env:REPOSITORY -d pipeline=env:PIPELINE -o ${PIPELINE_NEW} +gomplate -f templates/${ACCOUNT}/${PIPELINE}.yaml -d repository=env:REPOSITORY -d pipeline=env:PIPELINE -o ${PIPELINE_NEW} --config configs/gomplate.yaml if [[ "${PIPELINE_IS_NEW}" == "1" ]]; then ## Current pipeline is empty diff --git a/configs/gomplate.yaml b/configs/gomplate.yaml new file mode 100644 index 000000000..e69de29bb diff --git a/modules/docs/Makefile b/modules/docs/Makefile index a4c5c0dc3..0ef27290c 100644 --- a/modules/docs/Makefile +++ b/modules/docs/Makefile @@ -25,7 +25,7 @@ docs/terraform.md: docs/deps packages/install/terraform-docs ## Update `docs/github-action.md` from `action.yaml` docs/github-action.md: docs/deps packages/install/gomplate @echo "" > $@ - @gomplate -d action=./action.yml -f $(BUILD_HARNESS_PATH)/templates/docs-github-action.gotmpl >> $@ + @gomplate -d action=./action.yml -f $(BUILD_HARNESS_PATH)/templates/docs-github-action.gotmpl --config $(BUILD_HARNESS_PATH)/configs/gomplate.yaml >> $@ @echo "" >> $@ .PHONY : docs/github-actions-reusable-workflows.md @@ -33,5 +33,5 @@ docs/github-action.md: docs/deps packages/install/gomplate docs/github-actions-reusable-workflows.md: docs/deps packages/install/gomplate packages/install/yq @echo "" > $@ @yq eval-all --exit-status --no-colors [.] ./.github/workflows/* | \ - gomplate -d workflows=stdin:?type=application/yaml -f $(BUILD_HARNESS_PATH)/templates/docs-github-actions-reusable-workflows.gotmpl >> $@ + gomplate -d workflows=stdin:?type=application/yaml -f $(BUILD_HARNESS_PATH)/templates/docs-github-actions-reusable-workflows.gotmpl --config $(BUILD_HARNESS_PATH)/configs/gomplate.yaml >> $@ @echo "" >> $@ diff --git a/modules/readme/Makefile b/modules/readme/Makefile index 4155d1347..74f90590b 100644 --- a/modules/readme/Makefile +++ b/modules/readme/Makefile @@ -29,8 +29,7 @@ readme/lint: ## Create README.md by building it from README.yaml readme/build: readme/deps $(README_DEPS) - @gomplate --file $(README_TEMPLATE_FILE) \ - --out $(README_FILE) + @gomplate --file $(README_TEMPLATE_FILE) --out $(README_FILE) --config $(BUILD_HARNESS_PATH)/configs/gomplate.yaml @echo "Generated $(README_FILE) from $(README_TEMPLATE_FILE) using data from $(README_TEMPLATE_YAML)" readme/generate-related-references: