fix: auto-fix code quality [skip ci]

This commit is contained in:
mytheclipsebotreview
2026-07-25 12:48:41 +07:00
parent cd36326202
commit 9ebf1b4655
2 changed files with 14 additions and 35 deletions
+13 -32
View File
@@ -202,22 +202,21 @@ jobs:
echo "🧹 Removing stale target containers by container_name..." echo "🧹 Removing stale target containers by container_name..."
# Extract all explicitly defined container_names from compose files and remove them to prevent conflicts # Extract all explicitly defined container_names from compose files and remove them to prevent conflicts
remove_stale_containers() {
local files="$1"
local f
for f in $files; do
if [ -f "$f" ]; then
grep "container_name:" "$f" | awk '{print $2}' | while read -r cname; do
docker rm -f "$cname" >/dev/null 2>&1 || true
done
fi
done
}
if [ -n "$TARGET_COMPOSE" ]; then if [ -n "$TARGET_COMPOSE" ]; then
for f in $TARGET_COMPOSE; do remove_stale_containers "$TARGET_COMPOSE"
if [ -f "$f" ]; then
grep "container_name:" "$f" | awk '{print $2}' | while read -r cname; do
docker rm -f "$cname" >/dev/null 2>&1 || true
done
fi
done
else else
for f in $ALL_COMPOSE_FILES; do remove_stale_containers "$ALL_COMPOSE_FILES"
if [ -f "$f" ]; then
grep "container_name:" "$f" | awk '{print $2}' | while read -r cname; do
docker rm -f "$cname" >/dev/null 2>&1 || true
done
fi
done
fi fi
echo "🆙 Starting services..." echo "🆙 Starting services..."
@@ -234,21 +233,3 @@ jobs:
echo "✅ Traefik reload signal sent" echo "✅ Traefik reload signal sent"
fi fi
EOF EOF
# - name: Restart coolify-proxy (delay 1 min)
# env:
# SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
# VPS_HOST: ${{ secrets.VPS_HOST }}
# VPS_USER: ${{ secrets.VPS_USER }}
# run: |
# mkdir -p ~/.ssh
# echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
# chmod 600 ~/.ssh/id_rsa
# ssh-keyscan -H "$VPS_HOST" >> ~/.ssh/known_hosts
#
# echo "⏳ Waiting 60s for containers to settle before restarting proxy..."
# sleep 60
#
# echo "🔄 Restarting coolify-proxy..."
# ssh "${VPS_USER}@${VPS_HOST}" "docker restart coolify-proxy"
# echo "✅ coolify-proxy restarted."
+1 -3
View File
@@ -69,8 +69,6 @@ jobs:
echo "rust-auth=$(changed '^(apps/rust-auth(/|$)|\.github/workflows/docker-build-push\.yml$|infra/docker/rust-auth\.Dockerfile$|\.gitmodules$')" >> "$GITHUB_OUTPUT" echo "rust-auth=$(changed '^(apps/rust-auth(/|$)|\.github/workflows/docker-build-push\.yml$|infra/docker/rust-auth\.Dockerfile$|\.gitmodules$')" >> "$GITHUB_OUTPUT"
echo "llm-api=$(changed '^(apps/llm-api(/|$)|\.github/workflows/docker-build-push\.yml$|infra/docker/llm-api\.Dockerfile$|\.gitmodules$')" >> "$GITHUB_OUTPUT" echo "llm-api=$(changed '^(apps/llm-api(/|$)|\.github/workflows/docker-build-push\.yml$|infra/docker/llm-api\.Dockerfile$|\.gitmodules$')" >> "$GITHUB_OUTPUT"
- name: Parse repository_dispatch payload
- name: Parse repository_dispatch payload - name: Parse repository_dispatch payload
id: dispatch id: dispatch
if: github.event_name == 'repository_dispatch' if: github.event_name == 'repository_dispatch'
@@ -143,7 +141,7 @@ jobs:
"elysia-api") REPO="https://github.com/asepharyana/asepharyana-hub-elysia.git" ;; "elysia-api") REPO="https://github.com/asepharyana/asepharyana-hub-elysia.git" ;;
"react-web") REPO="https://github.com/asepharyana/asepharyana-hub-react.git" ;; "react-web") REPO="https://github.com/asepharyana/asepharyana-hub-react.git" ;;
"rust-auth") REPO="https://github.com/asepharyana/asepharyana-hub-rust-auth.git" ;; "rust-auth") REPO="https://github.com/asepharyana/asepharyana-hub-rust-auth.git" ;;
{indent}"llm-api") REPO="https://github.com/asepharyana/asepharyana-hub-llm-api.git" ;; "llm-api") REPO="https://github.com/asepharyana/asepharyana-hub-llm-api.git" ;;
*) *)
echo "::error::Unsupported service '$SERVICE'" echo "::error::Unsupported service '$SERVICE'"
exit 1 exit 1