From babab3607ecf507176ece7d638fff67eca26c16b Mon Sep 17 00:00:00 2001 From: sg Date: Tue, 17 Sep 2024 11:31:25 +0100 Subject: [PATCH] brakeman rails project test workflow --- .../rails-project/kustomization.yaml | 13 +++++++++++ .../pipelines/rails-project/pipelinerun.yaml | 22 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 examples/pipelines/rails-project/kustomization.yaml create mode 100644 examples/pipelines/rails-project/pipelinerun.yaml diff --git a/examples/pipelines/rails-project/kustomization.yaml b/examples/pipelines/rails-project/kustomization.yaml new file mode 100644 index 000000000..b01721a5a --- /dev/null +++ b/examples/pipelines/rails-project/kustomization.yaml @@ -0,0 +1,13 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +nameSuffix: -rails-project +components: + - pkg:helm/dracon-oss-components/base + - pkg:helm/dracon-oss-components/git-clone + - components/producers/brakeman + - pkg:helm/dracon-oss-components/producer-aggregator + - pkg:helm/dracon-oss-components/enricher-codeowners + - pkg:helm/dracon-oss-components/enricher-aggregator + - pkg:helm/dracon-oss-components/consumer-mongodb + - pkg:helm/dracon-oss-components/consumer-elasticsearch diff --git a/examples/pipelines/rails-project/pipelinerun.yaml b/examples/pipelines/rails-project/pipelinerun.yaml new file mode 100644 index 000000000..feed19ab7 --- /dev/null +++ b/examples/pipelines/rails-project/pipelinerun.yaml @@ -0,0 +1,22 @@ +--- +apiVersion: tekton.dev/v1beta1 +kind: PipelineRun +metadata: + generateName: dracon-rails-project- +spec: + pipelineRef: + name: dracon-rails-project + params: + - name: git-clone-url + value: https://github.com/guilleiguaran/dvra + - name: git-clone-subdirectory + value: source-code + workspaces: + - name: output + volumeClaimTemplate: + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi