Skip to content

revanth-traceable/drone-helm-push

Repository files navigation

Drone Helm Push Plugin

A Drone plugin for packaging and pushing Helm charts to an Artifactory registry.

Features

  • Package Helm charts using helm package
  • Push packaged charts to an Artifactory registry using helm push
  • Optional overriding of chart version and app version

Usage

Add the following to your .drone.yml file:

steps:
  - name: helm-push
    image: revanth-traceable/drone-helm-push
    settings:
      chart_path: ./charts/my-chart
      registry_url: oci://pkg.harness.io/sl32ke39qekmavwtgmagow/har-helm-repo
      username:
        from_secret: artifactory_username
      password:
        from_secret: artifactory_password
      # Optional settings
      chart_version: 1.0.0
      app_version: 1.0.0

Parameter Reference

Parameter Description Required Default
chart_path Path to the Helm chart Yes N/A
registry_url Full Artifactory registry URL (e.g., oci://pkg.harness.io/sl32ke39qekmavwtgmagow/har-helm-repo) Yes N/A
username Username for Artifactory authentication Yes N/A
password Password for Artifactory authentication Yes N/A
chart_version Override the chart version No Version from Chart.yaml
app_version Override the app version No Version from Chart.yaml

Building

Build the plugin binary:

go build -o release/linux/amd64/drone-helm-push ./cmd/helm-push

Build the Docker image:

docker build -t revanth-traceable/drone-helm-push .

Example

kind: pipeline
type: docker
name: default

steps:
  - name: helm-push
    image: revanth-traceable/drone-helm-push
    settings:
      chart_path: ./charts/demo-java-app
      registry_url: oci://pkg.harness.io/sl32ke39qekmavwtgmagow/har-helm-repo
      username:
        from_secret: artifactory_username
      password:
        from_secret: artifactory_password
      chart_version: 1.0.0

License

This project is licensed under the Apache 2.0 License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published