Skip to content
This repository has been archived by the owner on Sep 29, 2021. It is now read-only.

Commit

Permalink
docs: add example
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Oct 15, 2020
1 parent 5e6e55c commit e30c1aa
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ func TestBuildflow(t *testing.T) { //nolint:funlen
title: "hello world",
file: "hello_world.yaml",
},
{
title: "define meta parameters",
file: "meta.yaml",
},
{
title: "read command from a file (task.command_file)",
file: "command_file.yaml",
Expand Down
17 changes: 17 additions & 0 deletions examples/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
meta:
hey:
hey: yo
phases:
- name: main
meta:
foo: bar
tasks:
- name: hello
meta:
message: hello world
command:
command: |
echo "{{.Meta.hey.hey}}"
echo "{{.Phase.Meta.foo}}"
echo "{{.Task.Meta.message}}"

0 comments on commit e30c1aa

Please sign in to comment.