{
  "name": "docker-build-push",
  "title": "Build and push a container image",
  "category": "CI/CD",
  "tags": [
    "buildkit",
    "ci-cd"
  ],
  "version": "1.0.0",
  "date": "2026-07-17",
  "notes": "Initial release.",
  "latest": false,
  "installable": false,
  "url": "https://catalog.dagweave.com/api/v1/items/docker-build-push/1.0.0.json",
  "entrypoint": "build",
  "parameters": [
    {
      "name": "context",
      "title": "Build context",
      "description": "A directory BuildKit can read, or a git/HTTP URL it can fetch. A git URL carries its branch and subdirectory as a #ref:subdir fragment.",
      "type": "string",
      "required": true,
      "example": "/work"
    },
    {
      "name": "destination",
      "title": "Destination image",
      "description": "Fully-qualified destination image reference to push (registry/repo:tag).",
      "type": "string",
      "required": true,
      "example": "ghcr.io/org/app:1.2.3"
    },
    {
      "name": "docker-config-secret-key",
      "title": "Docker config secret key",
      "description": "Key within the Secret that holds the Docker config.json.",
      "type": "string",
      "required": false,
      "default": ".dockerconfigjson"
    },
    {
      "name": "docker-config-secret-name",
      "title": "Docker config secret name",
      "description": "Name of the Kubernetes Secret holding the registry Docker config.json.",
      "type": "string",
      "required": false,
      "default": "docker-config"
    },
    {
      "name": "dockerfile",
      "title": "Dockerfile",
      "description": "Path to the Dockerfile, relative to the context root.",
      "type": "string",
      "required": false,
      "default": "Dockerfile"
    },
    {
      "name": "push",
      "title": "Push",
      "description": "Set to false to build the image and keep it in the builder without pushing it anywhere.",
      "type": "string",
      "required": false,
      "default": "true",
      "enum": [
        "true",
        "false"
      ]
    }
  ],
  "images": [
    {
      "ref": "moby/buildkit@sha256:f68752a5a94acfcdad2d07867b7075601a421638e17fc5f28efc1c814d0c4f89",
      "repository": "moby/buildkit",
      "tag": "v0.34.1-rootless",
      "digest": "sha256:f68752a5a94acfcdad2d07867b7075601a421638e17fc5f28efc1c814d0c4f89"
    }
  ],
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/docker-build-push",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
