Allow to load env file (#80)
closes https://codeberg.org/woodpecker-plugins/docker-buildx/issues/34 Reviewed-on: https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/80 Reviewed-by: anbraten <anbraten@noreply.codeberg.org> Co-authored-by: qwerty287 <ndev@web.de> Co-committed-by: qwerty287 <ndev@web.de>
This commit is contained in:
parent
c35b2e1ae9
commit
0f0aba7f82
@ -19,6 +19,10 @@ func main() {
|
|||||||
if _, err := os.Stat("/run/drone/env"); err == nil {
|
if _, err := os.Stat("/run/drone/env"); err == nil {
|
||||||
godotenv.Overload("/run/drone/env")
|
godotenv.Overload("/run/drone/env")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if envFile, set := os.LookupEnv("PLUGIN_ENV_FILE"); set {
|
||||||
|
godotenv.Overload(envFile)
|
||||||
|
}
|
||||||
|
|
||||||
app := &cli.App{
|
app := &cli.App{
|
||||||
Name: "docker-buildx",
|
Name: "docker-buildx",
|
||||||
|
1
docs.md
1
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
|
| `add_host` | *none* | sets additional host:ip mapping
|
||||||
| `output` | *none* | sets build output in format `type=<type>[,<key>=<value>]`
|
| `output` | *none* | sets build output in format `type=<type>[,<key>=<value>]`
|
||||||
| `logins` | *none* | option to log into multiple registries
|
| `logins` | *none* | option to log into multiple registries
|
||||||
|
| `env_file` | *none* | load env vars from specified file
|
||||||
|
|
||||||
## Multi registry push example
|
## Multi registry push example
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user