Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
helm-promote helm-promote
Promote images and dependencies between helm charts in different directories and bump the chart version.
arguments
PromoteHelmChart:
title: Promote helm chart from dev to test
type: helm-promote
working_directory: '${{Clone}}'
arguments:
PROMOTE_FROM: dev
PROMOTE_TO: test
PROMOTE_IMAGES: 'frontend,middleware,backend'
PromoteHelmChart:
title: Promote between values yamls in the same chart
type: helm-promote
working_directory: '${{Clone}}'
arguments:
PROMOTE_FROM: chart
PROMOTE_TO: chart
FROM_VALUES_YAML: values-dev.yaml
TO_VALUES_YAML: values-test.yaml
PROMOTE_IMAGES: web-ui
IMAGE_FORMAT: 'path.to.{{IMAGE}}.tag'