From 5822d1062e8c66f28239060f5e04df2913f8cc53 Mon Sep 17 00:00:00 2001 From: Tuomo Tanskanen Date: Mon, 29 Jan 2024 14:41:14 +0200 Subject: [PATCH] add spellcheck and shellcheck for metal3-docs Add spellchecker for documentation. Add shellcheck to lint the hack scripts. Signed-off-by: Tuomo Tanskanen --- prow/manifests/overlays/metal3/config.yaml | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/prow/manifests/overlays/metal3/config.yaml b/prow/manifests/overlays/metal3/config.yaml index a3222cd4..76703f0b 100644 --- a/prow/manifests/overlays/metal3/config.yaml +++ b/prow/manifests/overlays/metal3/config.yaml @@ -1017,6 +1017,34 @@ presubmits: value: "TRUE" image: docker.io/pipelinecomponents/markdownlint-cli2:0.9.0@sha256:71370df6c967bae548b0bfd0ae313ddf44bfad87da76f88180eff55c6264098c imagePullPolicy: Always + - name: shellcheck + run_if_changed: '((\.sh)|^Makefile)$' + decorate: true + spec: + containers: + - args: + - ./hack/shellcheck.sh + command: + - sh + env: + - name: IS_CONTAINER + value: "TRUE" + image: docker.io/koalaman/shellcheck-alpine:v0.9.0@sha256:e19ed93c22423970d56568e171b4512c9244fc75dd9114045016b4a0073ac4b7 + imagePullPolicy: Always + - name: spellcheck + run_if_changed: '(\.md|spellcheck\.sh|.cspell-config.json)$' + decorate: true + spec: + containers: + - args: + - ./hack/spellcheck.sh + command: + - sh + env: + - name: IS_CONTAINER + value: "TRUE" + image: ghcr.io/streetsidesoftware/cspell:8.3.2@sha256:2a6ab337b2f1a89e910653b46fdf219e3e4ec9662fc8d561b956c1fe14db9fac + imagePullPolicy: Always metal3-io/ip-address-manager: - name: gomod