Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
Release a Helm chart helm
Update or install a Helm chart.
arguments
deploy:
type: helm
arguments:
chart_name: test_chart
release_name: first
kube_context: my-kubernetes-context
tiller_namespace: kube-system
namespace: project
custom_values:
- KEY1=VAL1
- KEY2=VAL2
- KEY3=VAL3
custom_value_files:
- /path/to/values.yaml
- /path/to/values2.yaml
cmd_ps: '--wait --timeout 5'
deploy:
type: helm
arguments:
action: install
chart_name: test_chart
release_name: first
helm_version: 3.0.1
kube_context: my-kubernetes-context
skip_cf_stable_helm_repo: true
credentials_in_arguments: true
custom_values:
- 'pat.arr="{one,two,three}"'
- 'STR_WITH_COMAS="one\,two\,three"'
deploy:
type: helm
arguments:
action: push
chart_name: /codefresh/volume/repo/chart
chart_repo_url: 'cm://h.cfcr.io/useraccount/default'
deploy:
type: helm
arguments:
action: auth
kube_context: my-kubernetes-context
commands:
- helm list