build

Build a Dockerfile.

@docker build {
    dockerfile: "Dockerfile"
    platform: "linux/amd64"
    image: "ghcr.io/example/project"
    arguments: { configuration: "Release" }
}

Argument Reference

The following arguments are supported:

  • dockerfile - (Optional) Use alternative Dockerfile. Default is Dockerfile.
  • platform - (Optional) Target platform. Default is host.
  • image - (Required) Docker image to build.
  • arguments - (Optional) Named arguments to build image (see Dockerfile ARG).
Last updated on