12 lines
574 B
Bash
Executable File
12 lines
574 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
bash -n install.sh deploy.sh create-ci-kubeconfig.sh test.sh
|
|
kubectl create --dry-run=client --validate=false -f storage.yaml -f app.yaml -f ci-deployer.yaml -o json >/dev/null
|
|
images=$(kubectl create --dry-run=client --validate=false -f app.yaml -o json | jq -r 'select(.kind == "Deployment") | .spec.template.spec.containers[].image')
|
|
[[ -n $images ]]
|
|
while IFS= read -r image; do
|
|
[[ $image == *:* && $image != *:latest ]]
|
|
done <<<"${images}"
|
|
echo 'Manifest valid; deployment images are pinned.'
|