Skip to content

Scripts

Nicholas Wilde edited this page Feb 10, 2021 · 5 revisions

init.sh

$ ./init.sh -h
Usage: init.sh [-p PORT] [-h|-v] REPOSITORY:TAG
Init a helm chart from a template.

Mandatory arguments:
  REPOSITORY:TAG  The repository and tag of the image to be updated

Options:
  -p PORT         Port number to use
  -h              Print this Help.
  -v              Print script version and exit.

Example

update.sh

$ ./update -h
Usage: update.sh [<patch>|minor|major] [-h|-v] REPOSITORY:TAG
Update a helm chart

Mandatory arguments:
  REPOSITORY:TAG      The repository and tag of the image to be updated

Optional arguments:
  <patch>|minor|major Semver bump type. Default is patch.

Options:
  -h                  Print this Help.
  -v                  Print script version and exit.

Example

$ ./update.sh ghcr.io/linuxserver/clarkson:v1.1.2-ls9
Parsing inputs
  REPOSITORY:   ghcr.io/linuxserver/clarkson
  CHART_NAME:   clarkson
  CHART_PATH:   /home/nicholas/git/helm-charts/charts/clarkson
  TAG:          v1.1.2-ls9
  APP_VERSION:  v1.1.2
  BUMP:         patch
Doing checks
Updating Chart.yaml
  Bumping chart version from 0.1.7 to 0.1.8
Updating values.yaml

Clone this wiki locally