-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: add custom commands page; alphabetical order of howto
- Loading branch information
Showing
5 changed files
with
52 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
title: "Custom commands" | ||
--- | ||
|
||
You can specify custom steps using the `workflows` section in digger.yml. Handy for integration with other CLIs like infracost. | ||
|
||
``` | ||
projects: | ||
- name: production | ||
dir: prod | ||
workflow: with-infracost | ||
workflows: | ||
with-infracost: | ||
plan: | ||
steps: | ||
- init | ||
- plan | ||
- run: infracost breakdown --path=. | tee -a $DIGGER_OUT | ||
``` | ||
|
||
# $DIGGER_OUT | ||
|
||
If your custom command writes into a file path defined in the `$DIGGER_OUT` env variable, then its content will be appended to the comment as "additional output": | ||
|
||
![](/images/custom-command-output-infracost.png) | ||
|
||
The value of `$DIGER_OUT` defaults to `$RUNNER_TEMP/digger-out.log`; you can change that if needed by setting the env var explicitly. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters