We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d69cef6 + 6ae5698 commit 08ebf95Copy full SHA for 08ebf95
1 file changed
scripts/check-sample-files.sh
@@ -23,6 +23,13 @@ for dir in ./samples/*/; do
23
echo " - [ ] ${dir}compose.yaml is not valid according to \`defang compose config\`: $output"
24
fi
25
)
26
+
27
+ # Ensure the name: in Compose matches the sample/folder name
28
+ sample_name=$(basename "$dir")
29
+ compose_name=$(grep -E '^name:' "${dir}compose.yaml" | awk '{print $2}')
30
+ if [[ "$sample_name" != "$compose_name" ]]; then
31
+ echo " - [ ] fix name: in ${dir}compose.yaml to be '$sample_name' (currently '$compose_name')"
32
+ fi
33
34
35
# Check that we NOT have a .github/workflows/deploy.yaml file; it's generated from templates/deploy.yaml
0 commit comments