-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcopier.yaml
More file actions
93 lines (76 loc) · 2.17 KB
/
copier.yaml
File metadata and controls
93 lines (76 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
## Copier Configuration
# https://copier.readthedocs.io/en/stable/configuring/
_subdirectory: skeleton
_answers_file: .copier-answers.copier-python-project.yml
# Questions
# For a complete list of prompt options, see https://copier.readthedocs.io/en/stable/configuring/#advanced-prompt-formatting
project_name:
type: str
help: Provide the project name (use kebab-case, e.g. my-project-name)
# Computed variables for different case formats
sanitized_project_name:
type: str
default: "{{ project_name | trim }}"
when: false
project_name_kebab_case:
type: str
default: "{{ sanitized_project_name }}"
when: false
project_name_snake_case:
type: str
default: "{{ sanitized_project_name | replace('-', '_') }}"
when: false
project_name_flat_case:
type: str
default: "{{ sanitized_project_name | replace('-', '') }}"
when: false
project_name_title_case:
type: str
default: "{{ sanitized_project_name | replace('-', ' ') | title }}"
when: false
source_catalog_name:
type: str
default: "{{ project_name_snake_case }}"
when: false
description:
type: str
help: Provide a short description of the project
specify_author:
type: bool
default: false
help: Would you like to specify author information?
author_name:
type: str
help: Provide an author name in format "Firstname Lastname"
when: "{{ specify_author }}"
author_email:
type: str
help: Provide the author's email address
when: "{{ specify_author }}"
project_type:
type: str
help: Select the type of project
choices:
Empty: empty
Docker: dockerized
AWS Lambda: lambda
is_docker_project:
type: bool
default: "{{ project_type == 'dockerized' }}"
when: false
is_lambda_project:
type: bool
default: "{{ project_type == 'lambda' }}"
when: false
enforce_conventional_commits:
type: bool
default: true
help: Enforce conventional commit messages in Git (needed for automatic GitHub releases)
automatic_gh_release:
type: bool
default: true
help: Enable automatic GitHub releases based on conventional commits
when: "{{ enforce_conventional_commits }}"
tasks:
# Make entrypoint executable if it exists
- [invoke, "chmod +x docker-entrypoint.sh || true", after-copy]