Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1.42 KB

README.md

File metadata and controls

24 lines (17 loc) · 1.42 KB

Linter related tasks

Install the Tasks

  • Add a github integration to your toolchain with the repository containing the tasks (https://github.com/open-toolchain/tekton-catalog)
  • Add this github integration to the Definitions tab of your Continuous Delivery tekton pipeline, with the Path set to linter

linter-docker-lint

This task performs a lint on the given Dockerfile using Hadolint

Parameters

  • path-to-dockerfile: (optional) The path to the Dockerfile that is used for the build (default to . meaning current directory)
  • dockerfile: (optional) The name of the Dockerfile. Default to Dockerfile.
  • path-to-hadolint-config: (optional) The path to the hadolint configuration file.
  • hadolint-ignored-rules: (optional) Comma separated list of ignored rules for the lint.
  • trusted-registries: (optional) Comma separated list of trusted registries for the lint.
  • fail-on-lint-errors: (optional) flag ("true" | "false") to indicate if the task should fail or continue if issues are found in the Dockerfile lint. Default to "true"
  • pipeline-debug: (optional) Pipeline debug mode. Value can be 0 or 1. Default to 0

Workspaces

  • workspace: A workspace containing the Dockerfile to lint