Files
tar-valon-ansible/app-configs/aranea/dagu/dags/example-05-container-workflow.yaml
T

19 lines
435 B
YAML

# Container-based Workflow
# Using a container for all steps
description: Run workflow steps in a Python container
container:
image: python:3.13
volumes:
- /tmp/data:/data
steps:
- # write data to a file
command: |
python -c "with open('/data/output.txt', 'w') as f: f.write('Hello from Dagu!')"
- # read data from the file
command: |
python -c "with open('/data/output.txt') as f: print(f.read())"