-
-
Notifications
You must be signed in to change notification settings - Fork 231
37 lines (34 loc) · 1.17 KB
/
validate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Validate
on: [push, pull_request]
jobs:
validate-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Validate Documentation
run: |
dirname -- $(grep -Rl 'deprecated: "true"' compose/) | xargs rm -rf
for image in $(ls compose/.apps/); do
if ! ls -d docs/apps/* | grep -q "docs/apps/${image}.md"; then
echo "Missing documentation for ${image}"
exit 1
fi
if ! grep -q "apps/${image}.md" mkdocs.yml; then
echo "Missing link for ${image}"
exit 1
fi
done
validate-images:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Validate Images
run: |
dirname -- $(grep -Rl 'deprecated: "true"' compose/) | xargs rm -rf
for image in $(grep -RPoh "image: \K.*" compose/ | sort -u | grep -v '${'); do
echo "Image: ${image}"
if [[ ${image} != *":"* ]]; then
image="${image}:latest"
fi
docker run --rm mplatform/mquery "${image}"
done