A Drone plugin for packaging and pushing Helm charts to an Artifactory registry.
- Package Helm charts using
helm package - Push packaged charts to an Artifactory registry using
helm push - Optional overriding of chart version and app version
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 | 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 |
Build the plugin binary:
go build -o release/linux/amd64/drone-helm-push ./cmd/helm-pushBuild the Docker image:
docker build -t revanth-traceable/drone-helm-push .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.0This project is licensed under the Apache 2.0 License.