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

@eshepelyuk/semantic-release-helm-oci

v2.1.0

Published

semantic-release plugin for publishing Helm charts to OCI registries

Downloads

1,374

Readme

semantic-release-helm-oci

semantic-release plugin for publishing Helm charts to OCI compatible registries.

NPM semantic-release MIT License

| Step | Description | | ------------------ | -------------------------------------------------------- | | verifyConditions | Verify plugin configuration and login to Helm registry. | | prepare | Package Helm chart to local folder. | | publish | Publish Helm chart to OCI registry. | | chartPath | Chart directory, where the Chart.yaml is located. |

Installation

npm i @eshepelyuk/semantic-release-helm-oci -D

Usage

The plugin can be configured in the semantic-release configuration file :

.releaserc.json

{
  "plugins": [
    ["@eshepelyuk/semantic-release-helm-oci", {
      "registry": "oci://ghcr.io/eshepelyuk/abc"
    }]
  ]
}

.releaserc.yaml

plugins:
  -
    - '@eshepelyuk/semantic-release-helm-oci'
    - registry: oci://ghcr.io/eshepelyuk/abc

With this example, for each release, a Helm chart will be published to oci://ghcr.io/eshepelyuk/abc/${CHART_NAME}:${CHART_VERSION}. Where ${CHART_NAME} is a name from Chart.yaml and ${CHART_VERSION} is a version detected by semantic-release.

version and appVersion in Chart.yaml

Plugin intentionally doesn't modify Chart.yaml during the release. It's recommended to use Git tags for maintaining release versions.

The plugin leverages --version and --app-version when calling helm package to manage published chart versions and not rely on Chart.yaml.

There's two usage scenarios for this plugin:

  1. The chart and the application are co-located in the same repository.

    In this case, the version and appVersion are both changed during a release. This is a default plugin's behaviour.

  2. The chart is maintained separately from the application.

    In this case appVersion is modified outside of chart's release process and must be updated manually in Chart.yaml. To prevent plugin from setting --app-version - use skipAppVersion option.

Configuration

Environment variables

Credentials for OCI registry authentication are passed through environment variables:

| Variable | Description | | ------------------- | ------------------------------------ | | REGISTRY_USERNAME | Required. OCI registry username. | | REGISTRY_PASSWORD | Required. OCI registry password. |

Options

| Option | Description | Type | Default | | ------------------|-------------------------------------------------------------------|-----------|-----------| | registry | Required. Registry URL with oci:// schema,e.g. oci://ghcr.io/eshepelyuk/abc. | string | undefined | | skipAppVersion | Use appVersion from Chart.yaml when packaging chart, instead of using semantic-release nextVersion | boolean | false |