mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-17 19:01:57 +02:00
Use DOCKER_CONFIG for docker config location
If the DOCKER_CONFIG environment variable is set, use it when determining if the Docker config file exists. Fall back to kaniko default if it the DOCKER_CONFIG environment variable is not set. Fixes #1228
This commit is contained in:
@@ -354,8 +354,8 @@ func TestCheckPushPermissions(t *testing.T) {
|
||||
Destinations: []string{test.Destination},
|
||||
}
|
||||
if test.ExistingConfig {
|
||||
afero.WriteFile(fs, DockerConfLocation, []byte(""), os.FileMode(0644))
|
||||
defer fs.Remove(DockerConfLocation)
|
||||
afero.WriteFile(fs, DockerConfLocation(), []byte(""), os.FileMode(0644))
|
||||
defer fs.Remove(DockerConfLocation())
|
||||
}
|
||||
CheckPushPermissions(&opts)
|
||||
if test.ShouldCallExecCommand != calledExecCommand {
|
||||
|
||||
Reference in New Issue
Block a user