17
.gitea/workflows/dokdb4.yml
Normal file
17
.gitea/workflows/dokdb4.yml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
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
|
||||||
Reference in New Issue
Block a user