I wanted to be able to define a go template, so that we could define a .Range
for our repeatable resrouces and jobs. If you are looking for a more robust solution without regex replacement checkout goflat.
git clone [email protected]:aminjam/pipeline-generator.git
# assuming you have yaml.v2 or go get it
go get gopkg.in/yaml.v2
./generator.go > /tmp/final-pipeline.yml
- Change
data
andStructure
ingenerator.go
depending on your needs - Change
./fixtures/pipeline.yml
to use your own pipeline template
- Add this functionality to the core fly cli