Skip to content

Commit

Permalink
Add support for DOCKER_CONFIG env var when using Jib
Browse files Browse the repository at this point in the history
Resolves: quarkusio#27460

Co-authored-by: George Gastaldi <[email protected]>
(cherry picked from commit 8b042db)
  • Loading branch information
geoand authored and gsmet committed Sep 5, 2022
1 parent 9f0ab5f commit 9974883
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 9974883

Please sign in to comment.