Beispiel #1
0
 /**
  * Adds an additional tag to tag the target image with. For example, the following would
  * containerize to both {@code gcr.io/my-project/my-image:tag} and {@code
  * gcr.io/my-project/my-image:tag2}:
  *
  * <pre>{@code
  * Containerizer.to(RegistryImage.named("gcr.io/my-project/my-image:tag")).withAdditionalTag("tag2");
  * }</pre>
  *
  * @param tag the additional tag to push to
  * @return this
  */
 public IContainerizer WithAdditionalTag(string tag)
 {
     Preconditions.CheckArgument(ImageReference.IsValidTag(tag), "invalid tag '{0}'", tag);
     additionalTags.Add(tag);
     return(this);
 }