Learn ARGO-WORKFLOWS with Real Code Examples
Updated Nov 27, 2025
Code Sample Descriptions
1
Simple Argo Workflow
# argo/demo/workflow.yaml
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: simple-workflow-
spec:
templates:
- name: main
dag:
tasks:
- name: clone-repo
template: git-clone
- name: run-tests
template: test
dependencies: [clone-repo]
- name: git-clone
container:
image: alpine/git
command: ["sh", "-c"]
args: ["git clone https://github.com/example/repo.git /src"]
- name: test
container:
image: node:16
command: ["sh", "-c"]
args: ["cd /src && npm install && npm test"]
A simple Argo workflow to clone a Git repository and run tests in Kubernetes.