feat(config/template): Add assetbrokerUrl and legalUrl fields to module config and update website template to supply these values

This commit is contained in:
2025-04-15 15:53:34 +00:00
parent ff2ebc076d
commit 77bb8bf22e
4 changed files with 14 additions and 2 deletions

View File

@ -38,7 +38,7 @@ export const run = async (project: Project) => {
case 'website':
const ciTemplateDocker = await templateModule.getTemplate('ci_docker');
await ciTemplateDocker.writeToDisk(paths.cwd);
logger.log('info', 'Updated .gitlabci.yml!');
logger.log('info', 'Updated CI/CD config files!');
// lets care about docker
const dockerTemplate = await templateModule.getTemplate('dockerfile_service');
@ -57,6 +57,10 @@ export const run = async (project: Project) => {
// update html
if (project.gitzoneConfig.data.projectType === 'website') {
const websiteUpdateTemplate = await templateModule.getTemplate('website_update');
websiteUpdateTemplate.supplyVariables({
assetbrokerUrl: project.gitzoneConfig.data.module.assetbrokerUrl,
legalUrl: project.gitzoneConfig.data.module.legalUrl,
})
await websiteUpdateTemplate.writeToDisk(paths.cwd);
logger.log('info', `Updated html for website!`);
} else if (project.gitzoneConfig.data.projectType === 'service') {