Back to course

YAML Fundamentals for CI/CD

Modern DevSecOps (The Hard Way)

Understanding YAML

YAML (Yet Another Markup Language) is the standard for defining pipelines (GitHub Actions, GitLab CI, Jenkins).

Key Concepts:

  • Indentation: It must be spaces, not tabs.
  • Key-Value Pairs: image: ubuntu:latest.
  • Lists: Used for steps or jobs.

Example:

yaml job_name: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2