2020-05-16 20:45:41 +02:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
vars:
|
|
|
|
PORTUGUESE_HELLO_WORLD: Olá, mundo!
|
|
|
|
GERMAN: Hello
|
2017-07-02 20:30:50 +02:00
|
|
|
|
2019-08-18 17:37:21 +02:00
|
|
|
tasks:
|
|
|
|
default:
|
|
|
|
vars:
|
|
|
|
SPANISH: ¡Holla mundo!
|
|
|
|
PORTUGUESE: "{{.PORTUGUESE_HELLO_WORLD}}"
|
|
|
|
GERMAN: "Welt!"
|
|
|
|
deps:
|
|
|
|
- task: write-file
|
|
|
|
vars: {CONTENT: Dependence1, FILE: dep1.txt}
|
|
|
|
- task: write-file
|
|
|
|
vars: {CONTENT: Dependence2, FILE: dep2.txt}
|
|
|
|
- task: write-file
|
|
|
|
vars: {CONTENT: "{{.SPANISH|replace \"mundo\" \"dependencia\"}}", FILE: spanish-dep.txt}
|
|
|
|
cmds:
|
|
|
|
- task: write-file
|
|
|
|
vars: {CONTENT: Hello, FILE: hello.txt}
|
|
|
|
- task: write-file
|
|
|
|
vars: {CONTENT: "$echo 'World'", FILE: world.txt}
|
|
|
|
- task: write-file
|
|
|
|
vars: {CONTENT: "!", FILE: exclamation.txt}
|
|
|
|
- task: write-file
|
|
|
|
vars: {CONTENT: "{{.SPANISH}}", FILE: spanish.txt}
|
|
|
|
- task: write-file
|
|
|
|
vars: {CONTENT: "{{.PORTUGUESE}}", FILE: portuguese.txt}
|
|
|
|
- task: write-file
|
|
|
|
vars: {CONTENT: "{{.GERMAN}}", FILE: german.txt}
|
|
|
|
- task: non-default
|
2017-07-20 09:05:37 +02:00
|
|
|
|
2019-08-18 17:37:21 +02:00
|
|
|
write-file:
|
|
|
|
cmds:
|
|
|
|
- echo {{.CONTENT}} > {{.FILE}}
|
|
|
|
|
|
|
|
non-default:
|
|
|
|
vars:
|
|
|
|
PORTUGUESE: "{{.PORTUGUESE_HELLO_WORLD}}"
|
|
|
|
cmds:
|
|
|
|
- task: write-file
|
|
|
|
vars: {CONTENT: "{{.PORTUGUESE}}", FILE: portuguese2.txt}
|