Skip to content

Commit

Permalink
Merge pull request #73 from jadolg/fix-outdated-credentials-config
Browse files Browse the repository at this point in the history
Fix deprecated AuthConfig
  • Loading branch information
jadolg authored Sep 26, 2023
2 parents 9661cc6 + 04e1e6a commit 0b03caa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/docker/docker/api/types/registry"
"io"
"log"
"net/http"
Expand All @@ -33,7 +34,7 @@ func PullImage(imageid string) error {
return err
}

authConfig := types.AuthConfig{
authConfig := registry.AuthConfig{
Username: os.Getenv("DOCKER_USER"),
Password: os.Getenv("DOCKER_PASSWORD"),
}
Expand Down

0 comments on commit 0b03caa

Please sign in to comment.