mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-08 15:34:46 +08:00
15 lines
466 B
Bash
Executable file
15 lines
466 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e
|
|
mkdir -p fixtures
|
|
|
|
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 `pwd`/fixtures:/fixtures garethr/kubeval fixtures/demo.yaml
|
|
done
|