github.com/kubevela/workflow@v0.6.0/examples/workflow-run/custom-context.yaml (about)

     1  apiVersion: core.oam.dev/v1alpha1
     2  kind: WorkflowRun
     3  metadata:
     4    name: custom-context
     5    namespace: default
     6  spec:
     7    context:
     8      env: dev
     9      name: override
    10    workflowSpec:
    11      steps:
    12      - name: apply
    13        type: apply-deployment
    14        if: context.env == "dev"
    15        properties:
    16          image: nginx