@@ -25,10 +25,10 @@ def get_tags(readme_vars):
2525
2626def get_architectures (readme_vars ):
2727 if "available_architectures" not in readme_vars :
28- return [Architecture (arch = "arch_x86_64 " , tag = "amd64-latest" )]
28+ return [Architecture (arch = "x86_64 " , tag = "amd64-latest" )]
2929 archs = []
3030 for item in readme_vars ["available_architectures" ]:
31- archs .append (Architecture (arch = item ["arch" ][ 8 : - 3 ] , tag = item ["tag" ]))
31+ archs .append (Architecture (arch = item ["arch" ], tag = item ["tag" ]))
3232 return archs
3333
3434def get_changelogs (readme_vars ):
@@ -42,11 +42,6 @@ def get_changelogs(readme_vars):
4242def get_description (readme_vars ):
4343 description = readme_vars .get ("project_blurb" , "No description" )
4444 description = description .replace ("\n " , " " ).strip (" \t \n \r " )
45- if "project_name" in readme_vars :
46- description = description .replace ("[{{ project_name|capitalize }}]" , readme_vars ["project_name" ])
47- description = description .replace ("[{{ project_name }}]" , readme_vars ["project_name" ])
48- if "project_url" in readme_vars :
49- description = description .replace ("({{ project_url }})" , "" )
5045 return description
5146
5247def get_env_vars (readme_vars ):
@@ -130,7 +125,7 @@ def get_hostname(readme_vars):
130125 if not include_hostname :
131126 return None
132127 optional = include_hostname == "optional"
133- hostname = readme_vars .get ("param_hostname" , False ). replace ( "{{ project_name }}" , readme_vars [ "project_name" ])
128+ hostname = readme_vars .get ("param_hostname" , False )
134129 return Hostname (hostname = hostname , desc = readme_vars .get ("param_hostname_desc" , "" ), optional = optional )
135130
136131def get_mac_address (readme_vars ):
@@ -145,7 +140,8 @@ def get_image(repo):
145140 print (f"Processing { repo .name } " )
146141 if not repo .name .startswith ("docker-" ) or repo .name .startswith ("docker-baseimage-" ):
147142 return None
148- readme_vars = gh .get_readme_vars (repo )
143+ project_name = repo .name .replace ("docker-" , "" )
144+ readme_vars = gh .get_readme_vars (repo , project_name )
149145 if not readme_vars :
150146 return None
151147 categories = readme_vars .get ("project_categories" , "" )
@@ -174,7 +170,7 @@ def get_image(repo):
174170 caps = get_caps (readme_vars ),
175171 )
176172 return Image (
177- name = repo . name . replace ( "docker-" , "" ) ,
173+ name = project_name ,
178174 github_url = repo .html_url ,
179175 stars = repo .stargazers_count ,
180176 project_url = readme_vars .get ("project_url" , None ),
0 commit comments