ansible-role-k8s-ci/bin/update.sh
2020-06-13 00:06:55 +02:00

14 lines
675 B
Bash
Executable file

#!/usr/bin/env bash
wget https://github.com/drone/charts/raw/master/charts/drone/values.yaml
helm repo add drone https://charts.drone.io
helm repo update
helm template drone drone/drone --namespace drone --values drone-values.yaml > drone.yaml
kubernetes-split-yaml drone.yaml > generated.log
mv generated/*.yaml files/drone/
cat generated.log | while read LIGNE; do if [ $(echo "${LIGNE}" | grep -c ^File) -eq 1 ]; then echo -n "${LIGNE} "; else echo "${LIGNE}"; fi; done | grep ^File | sort -V | sed 's|.*\(generated/\)\(.*\.yaml\)| - "\2"|'
rm -fr generated generated.log drone.yaml
https://github.com/drone/charts/raw/master/charts/drone-runner-kube/values.yaml