mirror of
https://github.com/bitnami/charts.git
synced 2026-02-12 13:27:15 +08:00
[github-actions] Fix issue with hardcoded-images check (#29870)
Signed-off-by: Miguel Ruiz <miguel.ruiz@broadcom.com>
This commit is contained in:
4
.github/workflows/ci-pipeline.yml
vendored
4
.github/workflows/ci-pipeline.yml
vendored
@@ -111,10 +111,10 @@ jobs:
|
||||
run: |
|
||||
hardcoded_images=()
|
||||
while read -r image; do
|
||||
if [[ $image != {{*}} ]]; then
|
||||
if [[ -n "$image" && $image != {{*}} ]]; then
|
||||
hardcoded_images+=("${image}")
|
||||
fi
|
||||
done <<< "$(grep -REoh "^\s*image:\s+[\"']*.+[\"']*\s*$" "charts/bitnami/${CHART}/templates" | sed "s/image: [\"']*//" | sed "s/[\"']*$//")"
|
||||
done <<< "$(grep -REoh "\s*image:\s+[\"']*.+[\"']*\s*$" "charts/bitnami/${CHART}/templates" | sed "s/image: [\"']*//" | sed "s/[\"']*$//")"
|
||||
|
||||
echo "${hardcoded_images[@]}"
|
||||
if [[ ${#hardcoded_images[@]} -gt 0 ]] ; then
|
||||
|
||||
Reference in New Issue
Block a user