-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsolar.manifest.yaml
More file actions
96 lines (96 loc) · 3 KB
/
Copy pathsolar.manifest.yaml
File metadata and controls
96 lines (96 loc) · 3 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
94
95
96
id: mercury
repo: https://github.com/ayoub3bidi/mercury
default_ref: v0.4.1
variables:
- name: project_name
- name: app_title
- name: api_version
rewrites:
- file: .env.dist
replacements:
- from: "mercury_db"
to: "{{.project_name}}_db"
- from: "mercury_cache"
to: "{{.project_name}}_cache"
- from: "POSTGRES_HOST=mercury_db"
to: "POSTGRES_HOST={{.project_name}}_db"
- from: "POSTGRES_PASSWORD=mercury"
to: "POSTGRES_PASSWORD={{.project_name}}"
- from: "POSTGRES_USER=mercury"
to: "POSTGRES_USER={{.project_name}}"
- from: "POSTGRES_DB=mercury"
to: "POSTGRES_DB={{.project_name}}"
- from: "Mercury API Docs"
to: "{{.app_title}}"
- from: "Mercury API"
to: "{{.app_title}}"
- from: '"v1"'
to: '"{{.api_version}}"'
- file: docker-compose.yml
replacements:
- from: "mercurydb"
to: "{{.project_name}}db"
- from: "mercury"
to: "{{.project_name}}"
- file: src/constants/settings.py
replacements:
- from: '"mercury_cache"'
to: '"{{.project_name}}_cache"'
- file: .github/workflows/test.yml
replacements:
- from: "APP_TITLE=Mercury"
to: "APP_TITLE={{.app_title}}"
- from: "APP_DESCRIPTION=Mercury API"
to: "APP_DESCRIPTION={{.app_title}}"
- from: "POSTGRES_HOST=mercury_db"
to: "POSTGRES_HOST={{.project_name}}_db"
- from: "POSTGRES_DB=mercury"
to: "POSTGRES_DB={{.project_name}}"
- from: "POSTGRES_USER=mercury"
to: "POSTGRES_USER={{.project_name}}"
- from: "POSTGRES_PASSWORD=mercury"
to: "POSTGRES_PASSWORD={{.project_name}}"
- from: "REDIS_HOST=mercury_cache"
to: "REDIS_HOST={{.project_name}}_cache"
- file: .github/workflows/build.yml
replacements:
- from: "ayoub3bidi/mercury:latest"
to: "ayoub3bidi/{{.project_name}}:latest"
- file: README.md
replacements:
- from: "# Mercury"
to: "# {{.app_title}}"
- from: "Mercury API Docs"
to: "{{.app_title}}"
- from: "Mercury API"
to: "{{.app_title}}"
- from: "mercury_db"
to: "{{.project_name}}_db"
- from: "mercury_cache"
to: "{{.project_name}}_cache"
- from: "mercury_migrate"
to: "{{.project_name}}_migrate"
- from: "mercury_integration_tests"
to: "{{.project_name}}_integration_tests"
- from: "mercury_unit_tests"
to: "{{.project_name}}_unit_tests"
- from: "mercury_linter"
to: "{{.project_name}}_linter"
- from: "mercury_security"
to: "{{.project_name}}_security"
- from: "ayoub3bidi/mercury"
to: "ayoub3bidi/{{.project_name}}"
features:
- name: oidc
default: false
remove_paths:
- src/routes/oidc
- src/controllers/oidc
- src/utils/oidc.py
remove_lines:
- file: src/restful_ressources.py
pattern: "oidc"
- file: .env.dist
pattern: "OIDC"
- file: .env.dist
pattern: "GOOGLE_"