Update documentation

This commit is contained in:
Albert Wang 2023-03-04 01:05:59 -08:00
parent 5d7c8ba4a5
commit cd70a2137b
2 changed files with 3 additions and 0 deletions

View File

@ -211,3 +211,4 @@ Example configuration for passphrase which protecting a private key:
| `proxy_password` | password for proxy host user |
| `proxy_key` | plain text of proxy private key |
| `proxy_key_path` | key path of proxy private key |
| `no_auto_env` | if true, will not automatically load configs from `.env` file |

View File

@ -122,4 +122,6 @@ Configuration options are loaded from multiple sources:
2. From a dotenv file at a path specified by the `PLUGIN_ENV_FILE` environment variable.
3. From your `.drone.yml` Drone configuration.
If a `PLUGIN_NO_AUTO_ENV` environment variable (or drone configuration setting `no_auto_env`) is `"true"`, the container will skip loading `.env` unless otherwise specified by the `PLUGIN_ENV_FILE` environment variable (or by the `env_file` drone configuration setting).
Later sources override previous sources, i.e. if `PORT` is set in an `.env` file committed in the repository or created by previous test steps, it will override the default set `main.go`.