Skip to content

Commit

Permalink
add ci check for the generate drelease yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Chmouel Boudjnah <[email protected]>
  • Loading branch information
chmouel authored and Shivam Mukhade committed Nov 24, 2022
1 parent b411d01 commit 6a9414b
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .tekton/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,27 @@ spec:
- name: output
workspace: source

- name: yamllint
- name: generate-release-yaml
runAfter:
- fetchit
taskSpec:
workspaces:
- name: source
steps:
- name: gen-yaml
image: registry.access.redhat.com/ubi9/python-39
workingDir: $(workspaces.source.path)
script: |
set -x
mkdir -p bin/ # ignored in .gitignore
./hack/generate-releaseyaml.sh > bin/release.yaml
workspaces:
- name: source
workspace: source

- name: yamllint
runAfter:
- generate-release-yaml
taskSpec:
workspaces:
- name: source
Expand All @@ -42,6 +60,7 @@ spec:
image: quay.io/mhutter/yamllint
workingDir: $(workspaces.source.path)
script: |
set -x
yamllint -f parsable -c .yamllint $(find . -type f -regex ".*y[a]ml" -print)
workspaces:
- name: source
Expand Down

0 comments on commit 6a9414b

Please sign in to comment.