8000 Ignore templating some file or directories · Issue #167 · gruntwork-io/boilerplate · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Ignore templating some file or directories #167
Open
@vDMG

Description

@vDMG

First, thanks for open-sourcing this super cool project !

Describe the solution you'd like
We need a method to disable the templating for certain files/folders, especially when dealing with components like Helm chart templates that already include Go templates. In such cases, we don't want boilerplate to template them; instead, we need to output them as-is.

Describe alternatives you've considered
Not sure there is a clean way to do this but I found this workaround :

hooks:
  after:
  # copy helm templates (necessary because of go templates conflicts)
  - command: cp
    args:
      - -R
      - 'charts/{{"{{"}}.serviceName{{"}}"}}/templates/'
      - "{{ outputFolder }}/charts/{{ .serviceName }}/templates/"
  # copy github action files (necessary because of go templates conflicts)
  - command: cp
    args:
      - -R
      - ".github/workflows/"
      - "{{ outputFolder }}/.github/workflows/"

Additional context
I propose to add a property like disable_templating or skip_templating to the boilerplate manifest working the same way skip_files works but instead of skipping them we just copy them as-is.

WDYT ? If you like this proposal i'd love to contribute to the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0