sklp image

img
sklp image

Description

Build + push an OCI image daemonless (sklp image push)

Subcommands

Technical details

Technical details

Raw command JSON

{
  "path": [
    "sklp",
    "image"
  ],
  "slug": "image",
  "name": "image",
  "aliases": [
    "img"
  ],
  "short": "Build + push an OCI image daemonless (sklp image push)",
  "synopsis": "sklp image",
  "subcommands": [
    {
      "path": [
        "sklp",
        "image",
        "push"
      ],
      "slug": "image-push",
      "name": "push",
      "short": "Build a Dockerfile and push it to a registry",
      "synopsis": "sklp image push [flags]",
      "flags": [
        {
          "name": "dockerfile",
          "usage": "path to the Dockerfile (relative to --context)",
          "type": "string",
          "default": "Dockerfile"
        },
        {
          "name": "context",
          "usage": "Docker build context directory",
          "type": "string",
          "default": "."
        },
        {
          "name": "image",
          "usage": "destination image ref WITHOUT tag, e.g. rg.fr-par.scw.cloud/skalpai/core (required)",
          "type": "string"
        },
        {
          "name": "tag",
          "usage": "image tag (default: auto YYYYMMDD-HHMM-<short-sha>, UTC build time + git HEAD)",
          "type": "string"
        },
        {
          "name": "scan",
          "usage": "scan the built image with Trivy (daemonless) and abort the push on a HIGH/CRITICAL fixable finding",
          "type": "bool"
        },
        {
          "name": "secret",
          "usage": "build secret: id=<id>,env=<ENV> or id=<id>,src=<file> (repeatable)",
          "type": "stringSlice"
        },
        {
          "name": "build-arg",
          "usage": "set a Dockerfile ARG: NAME=value (repeatable)",
          "type": "stringSlice"
        },
        {
          "name": "platform",
          "usage": "target platform, linux/amd64 or linux/arm64 (default: the host's)",
          "type": "string"
        }
      ]
    }
  ]
}

See also