Document secret-file
in README and add example
This commit is contained in:
parent
85a47838fd
commit
4864ece107
2 changed files with 2 additions and 1 deletions
|
@ -84,6 +84,7 @@ act -v
|
||||||
-q, --quiet disable logging of output from steps
|
-q, --quiet disable logging of output from steps
|
||||||
-r, --reuse reuse action containers to maintain state
|
-r, --reuse reuse action containers to maintain state
|
||||||
-s, --secret stringArray secret to make available to actions with optional value (e.g. -s mysecret=foo or -s mysecret)
|
-s, --secret stringArray secret to make available to actions with optional value (e.g. -s mysecret=foo or -s mysecret)
|
||||||
|
--secret-file file with list of secrets to read from (e.g. --secret-file .secrets)
|
||||||
-v, --verbose verbose output
|
-v, --verbose verbose output
|
||||||
--version version for act
|
--version version for act
|
||||||
-w, --watch watch the contents of the local repo and run when files change
|
-w, --watch watch the contents of the local repo and run when files change
|
||||||
|
|
|
@ -47,7 +47,7 @@ func Execute(ctx context.Context, version string) {
|
||||||
rootCmd.PersistentFlags().BoolP("verbose", "v", false, "verbose output")
|
rootCmd.PersistentFlags().BoolP("verbose", "v", false, "verbose output")
|
||||||
rootCmd.PersistentFlags().BoolVarP(&input.noOutput, "quiet", "q", false, "disable logging of output from steps")
|
rootCmd.PersistentFlags().BoolVarP(&input.noOutput, "quiet", "q", false, "disable logging of output from steps")
|
||||||
rootCmd.PersistentFlags().BoolVarP(&input.dryrun, "dryrun", "n", false, "dryrun mode")
|
rootCmd.PersistentFlags().BoolVarP(&input.dryrun, "dryrun", "n", false, "dryrun mode")
|
||||||
rootCmd.PersistentFlags().StringVarP(&input.secretfile, "secret-file", "", "", "file with list of secrets to read from")
|
rootCmd.PersistentFlags().StringVarP(&input.secretfile, "secret-file", "", "", "file with list of secrets to read from (e.g. --secret-file .secrets)")
|
||||||
rootCmd.PersistentFlags().StringVarP(&input.envfile, "env-file", "", ".env", "environment file to read and use as env in the containers")
|
rootCmd.PersistentFlags().StringVarP(&input.envfile, "env-file", "", ".env", "environment file to read and use as env in the containers")
|
||||||
rootCmd.SetArgs(args())
|
rootCmd.SetArgs(args())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue