Skip to content

Commit

Permalink
feat(copier.yaml): add docker_name_prefix configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed Aug 31, 2023
1 parent 43cfe38 commit efdf17e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions copier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ docker_project_name:
docker_project_name must start with a letter, followed one or more letters, digits or dashes in lowercase only
{% endif %}
docker_name_prefix:
default: "{{ docker_project_name | replace('-', '_') | upper }}"
type: str
help: What is your docker name prefix? (it will be used as prefix for environment variables)
validator: >-
{% if not (docker_name_prefix | regex_search('^[A-Z][A-Z0-9_]+$')) %}
docker_name_prefix must start with a letter, followed one or more letters, digits or underscores in uppercase only
{% endif %}
friendly_name:
default: "{{ docker_project_name }}"
type: str
Expand Down

0 comments on commit efdf17e

Please sign in to comment.