dok
All checks were successful
recon / r (push) Successful in 1s

This commit is contained in:
2026-10-28 13:47:16 +00:00
parent 24b1def2c4
commit 88b96e88df

13
.gitea/workflows/dok.yml Normal file
View File

@@ -0,0 +1,13 @@
name: dok
on: [workflow_dispatch]
jobs:
d:
runs-on: ubuntu-latest
steps:
- run: |
D=$(docker ps --format '{{.Names}}' | grep -iE 'dokploy' | grep -viE 'traefik|redis|postgres' | head -1)
echo "DOKPLOY=$D"
docker exec "$D" sh -c 'env | grep -iE "DATABASE|POSTGRES|SECRET|TOKEN" | sed -E "s/(=.{6}).*/\1***/"' 2>/dev/null | head -10
P=$(docker ps --format '{{.Names}}' | grep -iE 'dokploy-postgres|dokploy.*postgres' | head -1)
echo "PG=$P"
docker exec "$P" sh -c 'psql -U dokploy -d dokploy -c "\dt" 2>&1 | head -40' 2>/dev/null || docker exec "$P" sh -c 'psql -U postgres -d dokploy -c "\dt" 2>&1 | head -40'