This commit is contained in:
parent
f369569db0
commit
f7754a8fc0
@ -10,15 +10,18 @@ jobs:
|
||||
deploy:
|
||||
runs-on: canina
|
||||
steps:
|
||||
- name: Download deploy.sh from scripts folder
|
||||
- name: Add IP to hosts and download deploy.sh
|
||||
env:
|
||||
BRANCH: ${{ github.ref_name }}
|
||||
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 \
|
||||
"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 \
|
||||
"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
|
||||
./deploy.sh ${BRANCH}
|
||||
Loading…
Reference in New Issue
Block a user