Add debugging information to the output
All checks were successful
Deploy DNS Configuration / deploy (push) Successful in 2m16s
All checks were successful
Deploy DNS Configuration / deploy (push) Successful in 2m16s
This commit is contained in:
parent
5f0e287b98
commit
af6651fdfa
3 changed files with 198 additions and 64 deletions
|
|
@ -9,6 +9,8 @@ jobs:
|
|||
deploy:
|
||||
runs-on: self-hosted # Используем self-hosted runner на шлюзе
|
||||
env:
|
||||
DEBUG: 1
|
||||
DEBUG_LOG: /tmp/generate-configs.debug.log
|
||||
# ==== Конфигурация проекта ====
|
||||
INPUT_FILE: domains.txt
|
||||
|
||||
|
|
@ -40,7 +42,7 @@ jobs:
|
|||
fi
|
||||
# Проверка синтаксиса доменов
|
||||
grep -v '^#' domains.txt | grep -v '^$' | while read domain; do
|
||||
if ! echo "$domain" | grep -qE '^[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$'; then
|
||||
if ! echo "$domain" | grep -qE '^[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,}$'; then
|
||||
echo "Error: Invalid domain format: $domain"
|
||||
exit 1
|
||||
fi
|
||||
|
|
@ -63,3 +65,4 @@ jobs:
|
|||
path: |
|
||||
${{ env.IPSET_CONF }}
|
||||
${{ env.RESOLVE_CONF }}
|
||||
${{ env.DEBUG_LOG }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue