Skip to content

Commit

Permalink
Add validation to check if the manifest_path match its file
Browse files Browse the repository at this point in the history
  • Loading branch information
erickgnavar committed Mar 21, 2024
1 parent e08688f commit 64d1f9d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ for file in $(find . -iname "*.yml" | grep deployment); do
acc=$((acc + 1))
fi

file=$(echo "$file" | sed 's/\.\///')

if [ "$manifest_path" != "$file" ]; then
echo "manifest_path: [$manifest_path] doesn't match with [$file]"
acc=$((acc + 1))
fi
else
echo "$file doesn't have a manifest_path configured"
fi
Expand Down

0 comments on commit 64d1f9d

Please sign in to comment.