Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
2.7K

Argo Workflow Runner argo-workflow-runner

Submit argo workflow

arguments

  • argo_host - Argo host
  • namespace - Argo namespace ( default value is argo )
  • workflow - Argo workflow resource string (https://argoproj.github.io/argo-workflows/fields/)
    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}}'

  
github.com
Pavel Kostohrys
Jun 29, 2021