fbecart / zinoma

Žinoma - Make your build flow incremental
MIT License
27 stars 2 forks source link

Accept more options for target inputs and outputs #16

Closed fbecart closed 4 years ago

fbecart commented 4 years ago

Žinoma currently accepts an array of input paths to make a target incremental.

Pragmatically, these inputs could also be:

While avoiding making the API too complex, we should make space for more options.

fbecart commented 4 years ago

Here is a proposed format:

target:
  build_docker:
    inputs:
      - { type: env_var, var_name: DOCKER_VERSION }
      - { type: files, path: . }
    outputs:
      - { type: cmd_stdout, cmd: 'docker image ls todos/backend:latest --format "{{.ID}}"' }
fbecart commented 4 years ago

Another possibility:

target:
  build_docker:
    inputs:
      - env_var: DOCKER_VERSION
      - fs_path: .
    outputs:
      - cmd_stdout: docker image ls todos/backend:latest --format "{{.ID}}"