Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
feat: skipAppVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
eshepelyuk committed Oct 27, 2021
1 parent 6d66f12 commit 3ee7b2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ module.exports = async (pluginConfig, context) => {

const ch = yaml.load(await fsPromises.readFile("./Chart.yaml"));

await execa('helm', ['package', '--version', version, '--app-version', version, "."], {
const appVersion = pluginConfig.skipAppVersion ? ch.appVersion : version;

await execa('helm', ['package', '--version', version, '--app-version', appVersion, "."], {
env: {HELM_EXPERIMENTAL_OCI: 1}
});

Expand Down

0 comments on commit 3ee7b2e

Please sign in to comment.