deploy.yml updated
Some checks failed
Deploy Canina / deploy (push) Failing after 5s

This commit is contained in:
parsa aghaei 2026-08-09 22:18:51 +03:30
parent f369569db0
commit f7754a8fc0

View File

@ -10,15 +10,18 @@ jobs:
deploy: deploy:
runs-on: canina runs-on: canina
steps: steps:
- name: Download deploy.sh from scripts folder - name: Add IP to hosts and download deploy.sh
env: env:
BRANCH: ${{ github.ref_name }} BRANCH: ${{ github.ref_name }}
run: | run: |
# دانلود از آدرس scripts (نسخه‌ای که قبلاً جواب داده) # 1. اضافه کردن آی‌پی به فایل hosts رانر تا دامنه حل شود
echo "87.248.133.138 git.parsaaghayi.ir" >> /etc/hosts
# 2. دانلود deploy.sh از دامنه اصلی (با SSL)
wget --no-check-certificate -O deploy.sh \ wget --no-check-certificate -O deploy.sh \
"https://87.248.133.138/parsa/canina/raw/branch/main/scripts/deploy.sh" || \ "https://git.parsaaghayi.ir/parsa/canina/raw/branch/main/deploy.sh" || \
wget --no-check-certificate -O deploy.sh \ wget --no-check-certificate -O deploy.sh \
"https://87.248.133.138/parsa/canina/raw/branch/develop/scripts/deploy.sh" "https://git.parsaaghayi.ir/parsa/canina/raw/branch/develop/deploy.sh"
chmod +x deploy.sh chmod +x deploy.sh
./deploy.sh ${BRANCH} ./deploy.sh ${BRANCH}