Show yq container contents to debug missing file
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
3wc 2020-09-25 19:31:21 +02:00
parent a8042ded33
commit 6c3aa39a76

View File

@ -9,6 +9,7 @@ PLUGIN_USER=${PLUGIN_USER:-drone}
generate_secrets() { generate_secrets() {
echo "--- start secrets ---" echo "--- start secrets ---"
docker run --rm -v "${PWD}":/workdir mikefarah/yq ls
for SECRET in $(docker run --rm -v "${PWD}":/workdir mikefarah/yq yq r "$PLUGIN_COMPOSE" 'secrets.*.name'); do for SECRET in $(docker run --rm -v "${PWD}":/workdir mikefarah/yq yq r "$PLUGIN_COMPOSE" 'secrets.*.name'); do
eval "echo \"generating $SECRET\"" eval "echo \"generating $SECRET\""
PW=$(</dev/urandom tr -dc 'A-Za-z0-9' | head -c 40; echo) PW=$(</dev/urandom tr -dc 'A-Za-z0-9' | head -c 40; echo)