File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
starlark/module/experimental/docker Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 44 "context"
55 "errors"
66 "fmt"
7+ "os"
78 "sort"
89 "sync"
910
@@ -131,7 +132,7 @@ func (i *image) getTags() (*starlark.List, error) {
131132 }
132133
133134 var err error
134- i .tags , err = docker .GetRepositoryTags (context .TODO (), nil , i .ref )
135+ i .tags , err = docker .GetRepositoryTags (context .TODO (), imageSystemContext () , i .ref )
135136 if err != nil {
136137 return nil , fmt .Errorf ("error listing repository tags: %v" , err )
137138 }
@@ -226,3 +227,9 @@ func versionToList(versions []*semver.Version, other []string) []string {
226227
227228 return append (output , other ... )
228229}
230+
231+ func imageSystemContext () * types.SystemContext {
232+ return & types.SystemContext {
233+ AuthFilePath : os .Getenv ("DOCKER_CONFIG" ),
234+ }
235+ }
You can’t perform that action at this time.
0 commit comments