mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-06 14:37:45 +08:00
23 lines
697 B
Bash
Executable file
23 lines
697 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e
|
|
mkdir -p fixtures
|
|
|
|
SCRIPT_DIR="$( pwd; )/$( dirname -- $0; )"
|
|
FIND="find"
|
|
# Brew installs GNU find as "gfind" by default
|
|
if command -v gfind >/dev/null 2>&2; then
|
|
FIND="$(which gfind)"
|
|
fi
|
|
|
|
for i in `${FIND} -maxdepth 1 -type f -name test\*yml | sort`; do
|
|
echo "☆☆☆☆☆☆☆☆☆☆ $i ☆☆☆☆☆☆☆☆☆☆"
|
|
helm template -f $i --dry-run mail > fixtures/demo.yaml
|
|
docker run \
|
|
-it \
|
|
-v "${SCRIPT_DIR}/fixtures:/fixtures" \
|
|
-v "${SCRIPT_DIR}/schemas:/schemas" \
|
|
garethr/kubeval \
|
|
--force-color \
|
|
--additional-schema-locations file:///schemas \
|
|
fixtures/demo.yaml
|
|
done
|