main: use CI_WORKSPACE/.docker.json to store the credentials
ci/woodpecker/push/woodpecker Pipeline was successful Details

main
Ariadne Conill 2022-08-04 18:00:14 -05:00
parent d8266e4e53
commit a7bece12da
1 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,7 @@ import (
"errors"
"fmt"
"os"
"path/filepath"
"github.com/docker/cli/cli/config"
"github.com/docker/cli/cli/config/types"
@ -79,7 +80,8 @@ func run(c *cli.Context) error {
return err
}
cf, err := config.Load(os.Getenv("DOCKER_CONFIG"))
workspaceConfig := filepath.Join(os.Getenv("CI_WORKSPACE"), ".docker.json")
cf, err := config.Load(workspaceConfig)
if err != nil {
return err
}