How to pass docker image tag from bazel command line

Viewed 681

Is there possible to pass docker image tag from command line, like:

bazel run :myimage_push --tag=foo_tag

so that the effect will be equivalent to

container_push(
  name = "myimage_push",
  format = "Docker",
  image = ":myimage",
  registry = "some.registry",
  repository = "some/repository",
  tag = "foo_tag",
)
1 Answers
Related