diff --git a/cmd/docker-buildx/main.go b/cmd/docker-buildx/main.go index c936baa..5531f44 100644 --- a/cmd/docker-buildx/main.go +++ b/cmd/docker-buildx/main.go @@ -19,6 +19,10 @@ func main() { if _, err := os.Stat("/run/drone/env"); err == nil { godotenv.Overload("/run/drone/env") } + + if envFile, set := os.LookupEnv("PLUGIN_ENV_FILE"); set { + godotenv.Overload(envFile) + } app := &cli.App{ Name: "docker-buildx", diff --git a/docs.md b/docs.md index cc620c6..3275862 100644 --- a/docs.md +++ b/docs.md @@ -122,6 +122,7 @@ If it's not a tag event, and no default branch, automated tags are skipped. | `add_host` | *none* | sets additional host:ip mapping | `output` | *none* | sets build output in format `type=[,=]` | `logins` | *none* | option to log into multiple registries +| `env_file` | *none* | load env vars from specified file ## Multi registry push example