plankton icon indicating copy to clipboard operation
plankton copied to clipboard

Create jobs dynamically for each item in a file or directory

Open adarlan opened this issue 3 years ago • 0 comments

Example:

services:
  foo-[for each item in examples]:
    image: alpine
    entrypoint:
      - cd ${item}
      - ls -a

It can loop through a directory files or through a file lines. It automatically adds the variable item or whatever it is called (for each name in names.txt)

adarlan avatar Dec 12 '21 14:12 adarlan