File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
examples/src/main/java/com/salesforce/multicloudj/registry Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,10 @@ public class Main {
3030
3131 // Constants
3232 private static final String DEFAULT_PROVIDER = "gcp" ;
33- private static final String REGISTRY_ENDPOINT = "https://us-docker.pkg.dev " ;
34- private static final String REPOSITORY = "my-project/my-repo/my-image " ;
33+ private static final String REGISTRY_ENDPOINT = "https://your-registry-endpoint " ;
34+ private static final String REPOSITORY = "your-repository " ;
3535 private static final String TAG = "latest" ;
36+ private static final String REGION = "your-region" ;
3637
3738 // Demo settings
3839 private static final BufferedReader reader = new BufferedReader (new InputStreamReader (System .in ));
@@ -163,6 +164,7 @@ private static void showSectionHeaderWithPause(String title) {
163164 private ContainerRegistryClient initializeClient () {
164165 return ContainerRegistryClient .builder (provider )
165166 .withRegistryEndpoint (REGISTRY_ENDPOINT )
167+ .withRegion (REGION )
166168 .build ();
167169 }
168170
@@ -296,6 +298,7 @@ private void demonstratePlatformSelection() {
296298 try (ContainerRegistryClient client =
297299 ContainerRegistryClient .builder (provider )
298300 .withRegistryEndpoint (REGISTRY_ENDPOINT )
301+ .withRegion (REGION )
299302 .withPlatform (arm64 )
300303 .build ()) {
301304
You can’t perform that action at this time.
0 commit comments