← All chapters

Chapter 5 Sidequest

Sidequest: The Cowsay Pipeline

Because sometimes automation should just be fun.

"Okay," I said. "We've been serious. Validation workflows, checking config files, making sure things don't break. But CI/CD can do anything you can do in a terminal."

Max raised an eyebrow. "Like what?"

"Like generating ASCII art cows that say whatever you want."

😕
Max

...what?

"Let me introduce you to cowsay. It's a command that's been around since 1999. Absolutely pointless. Absolutely delightful."

$Try cowsay locally
terminal output(text)
Max

This is the most useless thing I've ever seen.

I love it.

"Now let's make a GitHub Action that generates a cow every time you push."

The Cowsay Workflow

.github/workflows/moo.yml(yaml)

"The workflow_dispatch trigger means you can also run this manually from the Actions tab. For when you need cow wisdom on demand."

😮
Max

Wait, there are different animals?

"cowsay -f tux uses a penguin. -f dragon uses a dragon. There's a whole zoo in there."

Making It Actually Useful (Sort Of)

"Okay, let's make this slightly more practical. What if every push generated a 'build report' in cow format?"

.github/workflows/moo-report.yml(yaml)

"Now your build logs have personality. Is it professional? No. Is it fun? Absolutely."

"One more variant. There's another classic Unix command called fortune that generates random quotes. Combine them..."

.github/workflows/fortune-cow.yml(yaml)

"This picks a random cow file and feeds it a random fortune. It runs at noon every day. You'll never know what you're going to get."

🤔
Max

So wait... serious question. Companies actually use CI/CD for real work, right? Not just ASCII cows?

"Of course. But here's the thing—the same mechanics that make a cow say things can also deploy your code, run thousands of tests, or spin up infrastructure. It's all just 'run these commands when this happens.'"

"The cow is proof of concept. The production pipeline is the same thing, just with different commands."

Other Fun Ideas

💡More Silly Pipelines
  • figlet: Generate ASCII art text banners
  • lolcat: Rainbow-colored output
  • sl: A steam locomotive that runs across your screen (punishment for typing sl instead of ls)
  • neofetch: System info with ASCII art logo
  • asciiquarium: An aquarium in your terminal

None of these are "useful." All of them teach you how CI works.

Type a command below or scroll through content...
$
Vol
0/4
Ch
0/1
Cmd
0
Egg
0/7
LVL 1
Newbie
0 XP