Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
kentsanggds committed Feb 7, 2025
1 parent f6005e3 commit c734459
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions govuk-app-linter.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash
# set -e

declare -a ENVIRONMENTS=("integration" "staging" "production")
ENVIRONMENTS=("integration" "staging" "production")

for env in "$ENVIRONMENTS"; do
for env in "${ENVIRONMENTS[@]}"; do
array_length=$(yq e ".govukApplications | length - 1" "./charts/app-config/ci/$env-values.yaml")

if [ "$array_length" -le 0 ] ; then
Expand Down Expand Up @@ -34,7 +34,8 @@ for env in "$ENVIRONMENTS"; do
done

if [[ errors -gt 0 ]]; then
echo "$errors $env lint errors found";
echo "$errors lint errors found in $env values";
exit 1
fi

done

0 comments on commit c734459

Please sign in to comment.