Skip to content

Commit

Permalink
examples: adjust chain example to use env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
yields committed Aug 31, 2019
1 parent cebc202 commit 31a80e4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _examples/chain/dev.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

env:
summary: output env name
command: echo dev
command: echo $E
2 changes: 1 addition & 1 deletion _examples/chain/prod.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

env:
summary: output env name
command: echo prod
command: echo $E
3 changes: 3 additions & 0 deletions _examples/chain/root.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
dev:
summary: development commands
exec: robo --config {{ .robo.path }}/dev.yml
env: ["E=dev"]

stage:
summary: development commands
exec: robo --config {{ .robo.path }}/stage.yml
env: ["E=stage"]

prod:
summary: development commands
exec: robo --config {{ .robo.path }}/prod.yml
env: ["E=prod"]
2 changes: 1 addition & 1 deletion _examples/chain/stage.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

env:
summary: output env name
command: echo stage
command: echo $E

0 comments on commit 31a80e4

Please sign in to comment.