Skip to content

Commit b5edb67

Browse files
Add support for Google Application Default Credentials
This will try ADC as the last option if the container registry to push to is GCR or GAR. This should be equivalent to how the Maven and Gradle Jib plugins handle it. Resolves quarkusio#36306
1 parent f278b9b commit b5edb67

File tree

1 file changed

+2
-0
lines changed
  • extensions/container-image/container-image-jib/deployment/src/main/java/io/quarkus/container/image/jib/deployment

1 file changed

+2
-0
lines changed

extensions/container-image/container-image-jib/deployment/src/main/java/io/quarkus/container/image/jib/deployment/JibProcessor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,8 @@ private RegistryImage toRegistryImage(ImageReference imageReference, Optional<St
383383
}
384384
registryImage.addCredentialRetriever(credentialRetrieverFactory.dockerConfig(dockerConfigPath));
385385
}
386+
387+
registryImage.addCredentialRetriever(credentialRetrieverFactory.googleApplicationDefaultCredentials());
386388
}
387389
return registryImage;
388390
}

0 commit comments

Comments
 (0)