Skip to content

Commit

Permalink
Fix yaml lint violation on tkn-bundle task
Browse files Browse the repository at this point in the history
The task was merged at the same time as the yaml lint checks were
enabled.

Signed-off-by: Luiz Carvalho <lucarval@redhat.com>
  • Loading branch information
lcarva committed Jan 30, 2024
1 parent b3fbf02 commit ca929d4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions task/tkn-bundle/0.1/tkn-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ spec:
fi
done
if [[ -n "$(params.STEPS_IMAGE)" ]]; then
if [[ -n "${STEPS_IMAGE}" ]]; then
for f in "${FILES[@]}"; do
yq e '(.spec.steps[] | select(has("image")).image) = "$(params.STEPS_IMAGE)"' -i $f
yq e '(.spec.steps[] | select(has("image")).image) = "env(STEPS_IMAGE)"' -i $f
done
fi
Expand All @@ -115,6 +115,8 @@ spec:
value: $(params.CONTEXT)
- name: IMAGE
value: $(params.IMAGE)
- name: STEPS_IMAGE
value: $(params.STEPS_IMAGE)
script: |
#!/bin/env bash
Expand Down

0 comments on commit ca929d4

Please sign in to comment.