Akshit Agrawal 2052ea23a7 Update README.md
2024-01-12 17:07:55 +05:30
2023-12-19 13:27:35 +05:30
2024-01-12 15:19:05 +05:30
2024-01-12 11:56:42 +05:30
2023-11-02 10:02:23 +05:30
2024-01-12 15:46:59 +05:30
2024-01-12 17:07:55 +05:30

drone-helm-chart-container-registry

Synopsis

This plugin is designed to streamline the packaging and distribution of Helm charts to a Container registry.

Currently, supports pushing Helm charts to Docker Hub and Google Artifact Registry.

To learn how to utilize Drone plugins in Harness CI, please consult the provided documentation.

Parameters

Parameter Choices/Defaults Comments
registry_url
string
required
Docker registry where the packaged chart will be published
chart_path
string
Defaults: ./ Directory containing the helm chart
registry_username
string
required
Username to login to the above registry.
registry_password
string
required
PAT / access token to authenticate
registry_namespace
string
required
Namespace under which the chart will be published

Notes

If you aim to push Helm Charts to Google Artifact Registry (GAR):

  • Set the registry URL to LOCATION-docker.pkg.dev
  • use oauth2accesstoken as username and access-token as token. Refer to this documentation for generating an access token.

In case of Docker Hub:

  • Set the registry URL to registry.hub.docker.com

For more details check the examples section.

Plugin Image

The plugin harnesscommunity/drone-helm-chart-docker-registry is available for the following architectures:

OS Tag
linux/amd64 linux-amd64
linux/arm64 linux-arm64
windows/amd64 windows-amd64

Examples

# Plugin YAML
# DockerHub Example
- step:
    type: Plugin
    name: Push Helm Chart to DockerHub
    identifier: helm_chart_docker
    spec:
        connectorRef: harness-docker-connector
        image: harnesscommunity/drone-helm-chart-docker-registry
        settings:
            registry_url: registry.hub.docker.com
            registry_username: <+variable.docker_username>
            registry_password: <+secrets.getValue("docker_pat")>
            chart_path: chart
            docker_namespace: <+variable.namespace>
# Plugin YAML
# GAR Example
- step:
    type: Plugin
    name: Push Helm Chart to GAR
    identifier: helm_chart_gar
    spec:
        connectorRef: harness-docker-connector
        image: harnesscommunity/drone-helm-chart-docker-registry
        settings:
            registry_url: LOCATION-docker.pkg.dev
            registry_username: oauth2accesstoken
            registry_password: <+secrets.getValue("access_token")>
            chart_path: chart
            docker_namespace: <+variable.namespace>

If you notice any issues in this documentation, you can edit this document to improve it.

S
Description
No description provided
Readme Apache-2.0 24 MiB
Languages
Go 95.2%
Shell 3.1%
Dockerfile 1.7%