remove drone-runtime dependency [ci skip]

This commit is contained in:
Brad Rydzewski
2019-10-22 15:49:22 -07:00
parent 4d3f9c66af
commit cb17765779
12 changed files with 28 additions and 276 deletions

View File

@@ -9,8 +9,8 @@ import (
"io"
"io/ioutil"
"github.com/drone-runners/drone-runner-docker/engine/stdcopy"
"github.com/drone/drone-runtime/engine/docker/auth"
"github.com/drone-runners/drone-runner-docker/internal/docker/stdcopy"
"github.com/drone/runner-go/registry/auths"
"docker.io/go-docker"
"docker.io/go-docker/api/types"
@@ -145,7 +145,7 @@ func (e *engine) create(ctx context.Context, spec *Spec, step *Step, output io.W
// create pull options with encoded authorization credentials.
pullopts := types.ImagePullOptions{}
if step.Auth != nil {
pullopts.RegistryAuth = auth.Encode(
pullopts.RegistryAuth = auths.Encode(
step.Auth.Username,
step.Auth.Password,
)