Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple registry #13

Open
adloiseau opened this issue Mar 29, 2023 · 2 comments
Open

multiple registry #13

adloiseau opened this issue Mar 29, 2023 · 2 comments

Comments

@adloiseau
Copy link

It's is possible to publish the package on several repositories ? (ex: gitlab + aws ecr)

@nflaig
Copy link
Owner

nflaig commented Mar 29, 2023

That's not possible at the moment

@nflaig
Copy link
Owner

nflaig commented Mar 29, 2023

Should not even be that hard to support, if you check the logic here

if (pluginConfig.registry) {
if (pluginConfig.isChartMuseum) {
await publishChartToChartMuseum(pluginConfig.chartPath);
} else {
const filePath = path.join(pluginConfig.chartPath, 'Chart.yaml');
const chartYaml = await fsPromises.readFile(filePath);
const chart = yaml.load(chartYaml);
await publishChartToRegistry(pluginConfig.chartPath, pluginConfig.registry, chart.name, chart.version);
}
logger.log('Chart successfully published.');
} else if (pluginConfig.crPublish) {
await publishChartUsingCr(pluginConfig.chartPath, pluginConfig.crConfigPath, context)
} else {
logger.log('Chart not published.');
}
};

All that has to be done is not use if-else and just do multiple publish if multiple options are specified

manuschillerdev pushed a commit to manuschillerdev/semantic-release-helm that referenced this issue May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants