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

Commit

Permalink
docs: add an example
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Oct 15, 2020
1 parent fa49244 commit 5bc3261
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/command_file.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file is read from command_file.yaml
# Go's text/teplate
echo "{{.Task.Name}}"
7 changes: 7 additions & 0 deletions examples/command_file.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
phases:
- name: main
tasks:
- name: read command from a file
command:
command_file: command_file.sh
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: "read command from a file (task.command_file)",
file: "command_file.yaml",
},
{
title: "run tasks in parallel",
file: "parallel.yaml",
Expand Down

0 comments on commit 5bc3261

Please sign in to comment.