Skip to content

Helm Chart AppVersion and Chart version updater DroneCI and WoodpeckerCI Plugin

License

Notifications You must be signed in to change notification settings

burakince/helm-chart-appversion-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helm Chart AppVersion Updater

Helm Chart AppVersion and Chart version updater DroneCI Plugin

Environment Variables

Env Variable Description Required Default
PLUGIN_SSH_URL Repository SSH URL Yes
PLUGIN_SSH_KEY SSH Private Key Yes
PLUGIN_NAME Git user name Yes
PLUGIN_EMAIL Git user email Yes
PLUGIN_IMAGE_TAG New image tag Yes
PLUGIN_CHART_PATH Helm Chart path Yes
PLUGIN_DEBUG Enable debug mode No false
PLUGIN_TEST Enable test mode No false
PLUGIN_SSH_FOLDER Git SSH Folder No /root/.ssh
PLUGIN_SSH_PRIVATE_KEY_FILE SSH PK file name No /root/ssh/id_rsa
PLUGIN_KNOWN_HOSTS_FILE SSH Known Hosts file name No /root/ssh/known_hosts

Image Usage

docker run \
  -e PLUGIN_SSH_URL="git@gitea-ssh.gitea.svc.cluster.local:myuser/my-argocd-tracked-helm-chart-repo" \
  -e PLUGIN_SSH_KEY="myPrivateSshKey"
  -e PLUGIN_NAME="myname surname" \
  -e PLUGIN_EMAIL="myemail@mydomain.com" \
  -e PLUGIN_IMAGE_TAG="a1b2c3d4" \
  -e PLUGIN_CHART_PATH="charts/mychart" \
  --rm -it burakince/helm-chart-appversion-updater

Drone CI or Woodpecker CI Plugin Usage

You can use it with your Gitea git server as below.

kind: pipeline
name: default

steps:
  - name: update-chart-appversion
    image: burakince/helm-chart-appversion-updater:1.1.0
    pull: if-not-exists
    settings:
      ssh_url: "git@gitea-ssh.gitea.svc.cluster.local:myuser/my-argocd-tracked-helm-chart-repo"
      ssh_key:
        from_secret: ssh_key
      name: "myname surname"
      email: "myemail@mydomain.com"
      image_tag: "${DRONE_COMMIT:0:7}"
      chart_path: "charts/mychart"

Development

Running Tests

Pleae install BATS package to your system with the following command.

brew install bats-core

And you can use the following command to run all tests under test folder.

bats test