deploy.yml updated
Deploy Canina / deploy (push) Failing after 1s

This commit is contained in:
parsa aghaei committed 2026-08-09 22:22:02 +03:30
1 parent f7754a8fc0
commit 381fa441fa
4 files changed
+119 -117

No files matched your search

+8 -6
View File
@@ -17,11 +17,13 @@ jobs:
# 1. اضافه کردن آی‌پی به فایل hosts رانر تا دامنه حل شود
echo "87.248.133.138 git.parsaaghayi.ir" >> /etc/hosts
# 2. دانلود deploy.sh از دامنه اصلی (با SSL)
wget --no-check-certificate -O deploy.sh \
"https://git.parsaaghayi.ir/parsa/canina/raw/branch/main/deploy.sh" || \
wget --no-check-certificate -O deploy.sh \
"https://git.parsaaghayi.ir/parsa/canina/raw/branch/develop/deploy.sh"
# 2. دانلود deploy.sh (که الان توی پوشه‌ی scripts هست)
wget --no-check-certificate -O scripts/deploy.sh \
"https://git.parsaaghayi.ir/parsa/canina/raw/branch/main/scripts/deploy.sh" || \
wget --no-check-certificate -O scripts/deploy.sh \
"https://git.parsaaghayi.ir/parsa/canina/raw/branch/develop/scripts/deploy.sh"
chmod +x deploy.sh
# 3. به اسکریپت دسترسی بده و اون رو از داخل پوشه‌ی scripts اجرا کن
chmod +x scripts/deploy.sh
cd scripts
./deploy.sh ${BRANCH}