FIX: #0 Auto-replace broken AWS regional mirror with generic ports mirror in workflow
Some checks failed
Deploy Beta (NATIVE) / deploy (push) Failing after 47s
Some checks failed
Deploy Beta (NATIVE) / deploy (push) Failing after 47s
This commit is contained in:
parent
454e1e93e4
commit
31a8a51d84
1 changed files with 7 additions and 2 deletions
|
|
@ -34,9 +34,14 @@ jobs:
|
||||||
ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa ${{ secrets.BETA_EC2_USERNAME }}@${{ secrets.BETA_EC2_HOST }} << 'EOF'
|
ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa ${{ secrets.BETA_EC2_USERNAME }}@${{ secrets.BETA_EC2_HOST }} << 'EOF'
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# ── Fix AWS Broken Apt Mirror ─────────────────────────────
|
||||||
|
if [ -f /etc/apt/sources.list.d/ubuntu.sources ]; then
|
||||||
|
sudo sed -i 's|http://ap-south-2a.clouds.ports.ubuntu.com/ubuntu-ports/|http://ports.ubuntu.com/ubuntu-ports/|g' /etc/apt/sources.list.d/ubuntu.sources
|
||||||
|
fi
|
||||||
|
|
||||||
# ── Install PHP 8.3 & Dependencies ────────────────────────
|
# ── Install PHP 8.3 & Dependencies ────────────────────────
|
||||||
sudo apt-get update --fix-missing || true
|
sudo apt-get update
|
||||||
sudo apt-get install -y --fix-missing php8.3-cli php8.3-fpm php8.3-mysql php8.3-pgsql php8.3-gd php8.3-curl php8.3-zip php8.3-xml php8.3-mbstring php8.3-intl php8.3-soap
|
sudo apt-get install -y php8.3-cli php8.3-fpm php8.3-mysql php8.3-pgsql php8.3-gd php8.3-curl php8.3-zip php8.3-xml php8.3-mbstring php8.3-intl php8.3-soap
|
||||||
|
|
||||||
# ── Extract codebase to target directory ───────────────────
|
# ── Extract codebase to target directory ───────────────────
|
||||||
sudo mkdir -p /home/ubuntu/dolibarrbeta
|
sudo mkdir -p /home/ubuntu/dolibarrbeta
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue