npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

semantic-release-helm-v3

v1.2.5

Published

semantic-release plugin to publish a Helm release

Downloads

22

Readme

semantic-release-helm-v3

semantic-release plugin to publish Helm charts.

Latest version License Downloads Total Downloads

| Step | Description | | ------------------ | --------------------------------------------------------- | | verifyConditions | Verify required configuration and login to Helm registry. | | verifyRelease | Verify the up comming release version. | | prepare | Update version and/or appVersion in Chart.yaml. | | publish | Publish Helm chart to registry. |

NOTE: This repository is inspired by semantic-release-helm3. semantic-release-helm3

This plugin for semantic-release updates the version and appVersion fields in a Helm chart's Chart.yaml file.

The version and appVersion are updated according to nextRelease.version. Updating the appVersion is optional and can be disabled by setting onlyUpdateVersion to true.

Install

npm install semantic-release-helm-v3 -D
Examples:
version 0.1.0
appVersion 1.1.0
  1. patch (1.1.0 -> 1.1.1)
    New chart version is 0.1.1

  2. minor (1.1.0 -> 1.2.0)
    New chart version is 0.2.0

  3. major (1.1.0 -> 2.0.0)
    New chart version is 1.0.0

Configuration

Plugin Config

| Parameter | Type | Default | Required | Description | | ------------------- | --------- | ------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------- | | chartPath | string | "" | true | Chart directory, where the Chart.yaml is located. | | registry | string | "" | false | URI of a container registry. | | onlyUpdateVersion | boolean | false | false | Don't change appVersion if this is true. Useful if your chart is in a different git repo than the application. | | useChartVersion | boolean | false | false | Use Chart's version and appVersion rather than use Git Tag | | crPublish | boolean | false | false | Enable chart-releaser publishing. | | crConfigPath | string | "" | false | Path to .ct.yaml chart-releaser configuration file. | | isChartMuseum | boolean | false | false | Enable ChartMuseum publishing. | | populateChangelog | boolean | false | false | Populate artifacthub.io/changes annotations with notes produced by @semantic-release/release-notes-generator compatible plugins. | | skipRegistryLogin | boolean | false | false | Skip the helm registry login command in the verifyConditions step. | | packageArgs | string | "" | false | Additional parameters for the helm package command, e.g. --key mykey --keyring ~/.gnupg/secring.gpg | | cmPushArgs | string | "" | false | Additional parameters for the helm cm-push command (only relevant if isChartMuseum is set to true) e.g. --context-path /repo/path |

Environment Variables

Set chart path

export CHART_PATH=<dir>

Set USE_CHART_VERSION if you want to get next version based on Chart.yml version and appVersion

export USE_CHART_VERSION=true

Pass credentials through environment variables accordingly:

export REGISTRY_HOST=<HOST>
export REGISTRY_USERNAME=<USERNAME>
export REGISTRY_PASSWORD=<PASSWORD>

Example

This will update version and appVersion in ./chart/Chart.yaml and push the chart to localhost:5000/repo/chart. The image will be tagged with the value of version from Chart.yaml.

{
  "plugins": [
    [
      "semantic-release-helm-v3",
      {
        chartPath: './chart',
        registry: 'localhost:5000/repo/chart'
      }
    ]
  ]
}

ChartMuseum Example

The helm cm-push plugin adds support for ChartMuseum repositories such as Harbor.

This will push the chart to the specified repository, e.g. https://mydomain.com/chartrepo/myproject and tag the chart with the value of version from Chart.yaml.

It is important to set isChartMuseum to true and to specify the repository url as registry.

Note: It is required to have at least helm version 3.7.0 installed.

{
  "plugins": [
    [
      "semantic-release-helm-v3",
      {
        chartPath: './chart',
        registry: 'https://sample.com/chartrepo/myproject',
        isChartMuseum: true
      }
    ]
  ]
}