Waypoint deploy to multiple locations

All of the examples that I’ve seen so far have a 1 to 1 correlation between the ‘deploy’ stage and the ‘use’ stanza. Can I use waypoint to deploy->use->docker AND deploy->use->kubernetes or deploy to multiple kubernetes contexts?

  deploy {
    use "docker" {}
    use "kubernetes" {}
    use "kubernetes" {}
  }

Likewise, it would be useful to be able to tag the docker image with a version AND latest. Example:
build {
use “docker” {}
registry {
use “docker” {
image = “hashicorp/http-echo”
tag = “1.6”
tag = “latest”
}
}
}

Hi @chadsly,

No such an idea isn’t supported. We’re working out the right way to allow multiple use statements per phase now, so perhaps in the future though!

Feel free to drop and notes about how you’d want that to work here for us to consider though!

The most simple example would be running a docker build with multiple tags. Normally, I’d execute:
docker build -t consul:1.9.0-beta1 -t consul:latest .

I would assume the equivalent in waypoint to be:

build {
  use “docker” {}
    registry {
      use “docker” {
        image = “hashicorp/consul”
        tag = “1.9.0-beta1”
        tag = “latest”
    }
  }
}

My syntax may be wrong as I don’t completely understand how the builder works, yet.