From cd70a2137bc029cc184db869823de64d96b98f21 Mon Sep 17 00:00:00 2001 From: Albert Wang Date: Sat, 4 Mar 2023 01:05:59 -0800 Subject: [PATCH] Update documentation --- DOCS.md | 1 + README.md | 2 ++ 2 files changed, 3 insertions(+) diff --git a/DOCS.md b/DOCS.md index c41cd0f..67ca4ea 100644 --- a/DOCS.md +++ b/DOCS.md @@ -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 | diff --git a/README.md b/README.md index 2aae71a..ffb13a0 100644 --- a/README.md +++ b/README.md @@ -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`.