Skip to content

Commit

Permalink
commit 5-2
Browse files Browse the repository at this point in the history
Signed-off-by: jason yang <jasonyangshadow@gmail.com>
  • Loading branch information
JasonYangShadow committed Aug 29, 2024
1 parent 0ad71d1 commit 23f848c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions e2e/actions/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -3082,6 +3082,15 @@ func (c actionTests) actionAuthTester(t *testing.T, withCustomAuthFile bool, pro

e2e.PrivateRepoLogin(t, c.env, profile, localAuthFileName)

c.env.RunApptainer(
t,
e2e.AsSubtest("docker pull"),
e2e.WithProfile(profile),
e2e.WithCommand("pull"),
e2e.WithArgs(append(authFileArgs, "--disable-cache", "--no-https", c.env.TestRegistryPrivImage)...),
e2e.ExpectExit(0),
)

c.env.RunApptainer(
t,
e2e.AsSubtest("docker"),
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/util/ociauth/ociauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func ChooseAuthFile(reqAuthFile string) string {
return reqAuthFile
}

return syfs.DockerConf()
return syfs.SearchDockerConf()
}

func LoginAndStore(registry, username, password string, insecure bool, reqAuthFile string) error {
Expand Down

0 comments on commit 23f848c

Please sign in to comment.