github.com/aminjam/goflat@v0.4.1-0.20160331105230-ec639fc0d5b3/.examples/template.yml (about) 1 {{ $global := . }} 2 resources: 3 - name: ci 4 type: git 5 source: 6 uri: https://github.com/cloudfoundry/myproject-ci.git 7 private_key: | 8 {{.Private.Key | split "\n" | join "\n "}} 9 {{range .Repos}} 10 - name: {{.Name}} 11 type: git 12 source: 13 uri: {{.Repo}} 14 branch: {{.Branch}} 15 {{end}} 16 17 jobs: 18 {{range .Repos}} 19 - name: {{.Name}} 20 serial: true 21 plan: 22 - aggregate: 23 - get: ci 24 - get: project 25 resource: {{.Name}} 26 trigger: true 27 - task: do-something 28 config: 29 platform: linux 30 image: "docker:///alpine" 31 run: 32 path: sh 33 args: ["-c","echo Hi"] 34 params: 35 PASSWORD: {{$global.Private.Password}} 36 SECRET: {{$global.Private.Secret}} 37 {{end}} 38 - name-{{.Private.Secret}}: {{.Private.Password}} 39 - comma-seperated-repo-names: {{.Repos.Names | join "," }}