private static Set<String> getImageQualifiers(
      BuildContext buildContext, Image builtImage, DescriptorDigest manifestDigest) {
    boolean singlePlatform = buildContext.getContainerConfiguration().getPlatforms().size() == 1;
    Set<String> tags = buildContext.getAllTargetImageTags();
    if (singlePlatform) {
      return tags;
    }
    if (buildContext.getEnablePlatformTags()) {
      String architecture = builtImage.getArchitecture();
      return tags.stream().map(tag -> tag + "-" + architecture).collect(Collectors.toSet());
    }
    return Collections.singleton(manifestDigest.toString());
  }
Pushes a manifest or a manifest list for a tag. If not a manifest list, returns the manifest
digest ("image digest") and the container configuration digest ("image id") as {@link
BuildResult}. If a manifest list, returns the manifest list digest only.
jib-core/src/main/java/com/google/cloud/tools/jib/builder/steps/PushImageStep.java