task/testdata/run/Taskfile.yml

33 lines
588 B
YAML

version: '3.7'
run: when_changed
tasks:
generate-hash:
- task: input-content
vars: { CONTENT: '1' }
- task: input-content
vars: { CONTENT: '2' }
- task: input-content
vars: { CONTENT: '2' }
input-content:
deps:
- task: create-output
vars: { CONTENT: '1' }
cmds:
- echo {{.CONTENT}}
create-output:
run: once
cmds:
- echo starting {{.CONTENT}}
deploy:
cmds:
- task: deploy:infra
- task: deploy:js
- task: deploy:go
deploy:*:
run: once
cmd: echo "Deploy {{index .MATCH 0}}"