Comment by NeutralForest

1 year ago

I'm just so tired of writing bash scripts inside the YAML. I want to be able to lint and test whatever goes into my pipelines and actions. Not fight shitty DX on top of whatever Azure spits out when it fails.

This is entirely understandable, and entirely the fault of whoever thought bash scripts belong in configuration files. If you’re trying to stuff a tiger into a desk drawer, the natural consequences are hardly the fault of the desk drawer.

  • But it's the situation we're in now. It's what you see in the docs and what my colleagues write as well. I entirely agree that scripting into a markup language doesn't make sense yet the inertia is there and I wish there was some way out.

if you're writing bash inside of yaml then something has gone wrong well before yaml entered the picture, this is a problem with e.g. azure not with the yaml format

> I'm just so tired of writing bash scripts inside the YAML.

Why would you be doing that?

  • Can't tell if asked honestly. Because that's how most platforms handle their pipelines. Terraform or Bicep let you use a declarative language for your platform. Everything else is calling cli commands or scripts from pipelines, written in YAML.

    • I suppose I am confused by what you mean with, "writing bash scripts".

      Like, are you _literally_ scripting in the value of an item or are you just equating that they are similar?

      Literal being:

      get_number_of_lines:

        command: >
      
           #!/bin/bash
      
           wc -l

      2 replies →