sklp image push

sklp image push [flags]

Description

Build a Dockerfile and push it to a registry

Flags

FlagAliasesTypeDefaultEnvDescription
--dockerfile—stringDockerfile—path to the Dockerfile (relative to --context)
--context—string.—Docker build context directory
--image—string——destination image ref WITHOUT tag, e.g. rg.fr-par.scw.cloud/skalpai/core (required)
--tag—string——image tag (default: auto YYYYMMDD-HHMM-<short-sha>, UTC build time + git HEAD)
--scan—bool——scan the built image with Trivy (daemonless) and abort the push on a HIGH/CRITICAL fixable finding
--secret—stringSlice——build secret: id=<id>,env=<ENV> or id=<id>,src=<file> (repeatable)
--build-arg—stringSlice——set a Dockerfile ARG: NAME=value (repeatable)
--platform—string——target platform, linux/amd64 or linux/arm64 (default: the host's)

Technical details

Technical details

Raw command JSON

{
  "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