Skip to content

Commit

Permalink
Merge pull request #27471 from geoand/#27460
Browse files Browse the repository at this point in the history
Add support for DOCKER_CONFIG env var when using Jib
  • Loading branch information
gsmet authored Aug 24, 2022
2 parents 1bec261 + 8b042db commit f4eac7a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,10 @@ private RegistryImage toRegistryImage(ImageReference imageReference, Optional<St
} else {
registryImage.addCredentialRetriever(credentialRetrieverFactory.wellKnownCredentialHelpers());
registryImage.addCredentialRetriever(credentialRetrieverFactory.dockerConfig());
String dockerConfigEnv = System.getenv().get("DOCKER_CONFIG");
if (dockerConfigEnv != null) {
registryImage.addCredentialRetriever(credentialRetrieverFactory.dockerConfig(Path.of(dockerConfigEnv)));
}
}
return registryImage;
}
Expand Down

0 comments on commit f4eac7a

Please sign in to comment.