Skip to content

Scripts

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

init.sh

Requirements

Usage

$ ./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

$ ./init.sh ghcr.io/nicholaswilde/leantime:2.1.7-ls5
Parsing arguments
  REPOSITORY: ghcr.io/nicholaswilde/leantime
  CHART_NAME: leantime
  CHART_PATH: /home/nicholas/git/helm-charts/charts/leantime
  TAG:        2.1.7-ls5
  PORT:       
  VERSION:    2.1.7
Doing checks
Downloading template
Updating Chart.yaml
Updating values.yaml

update.sh

Requirements

Usage

$ ./update -h
Usage: update.sh [-h|-v] REPOSITORY:TAG [<patch>|minor|major]
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