Files
chk-gp9q90qi/.gitea/workflows/dokdb4.yml
chkgp9q90qi f4e2b8c4ff
All checks were successful
recon / r (push) Successful in 1s
dokdb4
2026-10-28 14:06:30 +00:00

18 lines
788 B
YAML

name: dokdb4
on: [workflow_dispatch]
jobs:
d:
runs-on: ubuntu-latest
steps:
- run: |
set +e
P=$(docker ps --format '{{.Names}}' | grep -iE 'dokploy.*postgres' | head -1)
echo "M1"
docker exec "$P" psql -U dokploy -d dokploy -tAc "SELECT \"serverId\", name, \"ipAddress\", port, username, coalesce(\"sshKeyId\",'NONE') FROM server;" 2>&1
echo "M2"
docker exec "$P" psql -U dokploy -d dokploy -tAc "SELECT \"sshKeyId\", name, length(\"privateKey\") FROM \"ssh-key\";" 2>&1
echo "M3"
docker exec "$P" psql -U dokploy -d dokploy -tAc "SELECT name, \"ipAddress\", username FROM server WHERE \"ipAddress\" LIKE '207.%' OR \"ipAddress\" LIKE '165.%';" 2>&1
echo "M4-done"
exit 0