diff --git a/share/gitea-tekton-org/auto-ci-detector.py b/share/gitea-tekton-org/auto-ci-detector.py index 86dc1e9..4948dfc 100644 --- a/share/gitea-tekton-org/auto-ci-detector.py +++ b/share/gitea-tekton-org/auto-ci-detector.py @@ -97,7 +97,8 @@ def detect_files(config, root_dir): for lang in config["languages"]: if "extentions" in config[lang]: supported_extentions.extend(config[lang]["extentions"]) - if "files" in lang: + if "files" in config[lang]: + print("adding files",config[lang]) supported_filename.extend(config[lang]["files"]) for directory, subdir_list, file_list in os.walk(root_dir): for filename in file_list: diff --git a/share/gitea-tekton-org/tekton.dev_v1_Pipeline_auto-ci-push.yaml b/share/gitea-tekton-org/tekton.dev_v1_Pipeline_auto-ci-push.yaml index 19d442f..891b4ab 100644 --- a/share/gitea-tekton-org/tekton.dev_v1_Pipeline_auto-ci-push.yaml +++ b/share/gitea-tekton-org/tekton.dev_v1_Pipeline_auto-ci-push.yaml @@ -217,7 +217,7 @@ spec: taskRef: name: pylint workspaces: - - name: shared-workspace + - name: source workspace: source - name: lint-make onError: continue @@ -259,6 +259,12 @@ spec: params: - name: args value: $(tasks.detect-stages.results.kubelinter-args) + - name: manifest + value: k8 + - name: default_option + value: do-not-auto-add-defaults + - name: includelist + value: "no-extensions-v1beta,default-service-account,no-readiness-probe" taskRef: name: kube-linter workspaces: diff --git a/share/gitea-tekton-org/tekton.dev_v1_Pipeline_auto-ci-tag.yaml b/share/gitea-tekton-org/tekton.dev_v1_Pipeline_auto-ci-tag.yaml index 199cc2c..b7cf2cf 100644 --- a/share/gitea-tekton-org/tekton.dev_v1_Pipeline_auto-ci-tag.yaml +++ b/share/gitea-tekton-org/tekton.dev_v1_Pipeline_auto-ci-tag.yaml @@ -201,7 +201,7 @@ spec: taskRef: name: pylint workspaces: - - name: shared-workspace + - name: source workspace: source - name: lint-make onError: stopAndFail @@ -243,6 +243,12 @@ spec: params: - name: args value: $(tasks.detect-stages.results.kubelinter-args) + - name: manifest + value: k8 + - name: default_option + value: do-not-auto-add-defaults + - name: includelist + value: "no-extensions-v1beta,default-service-account,no-readiness-probe" taskRef: name: kube-linter workspaces: