Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
Argo Workflow Runner argo-workflow-runner
Submit argo workflow
arguments
run-workflow:
title: Run argo workflow
type: argo-workflow-runner
arguments:
namespace: argo
argo_host: 'argo-server.argo:2746'
workflow: |
workflow:
metadata:
generateName: step-
spec:
entrypoint: argosay
arguments:
parameters:
- name: message
value: hello argo
templates:
- name: argosay
inputs:
parameters:
- name: message
value: '{{workflow.parameters.message}}'
container:
name: main
image: 'argoproj/argosay:v2'
command:
- /argosay
args:
- echo
- '{{inputs.parameters.message}}'