Fix deploy: pakai 127.0.0.1 + token read-only
Some checks failed
Deploy Portfolio to Production / deploy (push) Failing after 1s

This commit is contained in:
onie
2026-10-17 12:13:37 +07:00
parent 64e537067e
commit 12b437698c

View File

@@ -19,7 +19,7 @@ jobs:
run: | run: |
ssh -o ConnectTimeout=15 ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} << 'DEPLOY_SCRIPT' ssh -o ConnectTimeout=15 ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} << 'DEPLOY_SCRIPT'
set -e set -e
REPO_URL="http://onie:125icko@@100.101.65.69:3033/onie/portfolio.git" REPO_URL="http://onie:d36ff82230d9d16dff776b1a29ad1c4cf878d91e@127.0.0.1:3033/onie/portfolio.git"
WORKDIR="/home/gosa/portfolio" WORKDIR="/home/gosa/portfolio"
TARGET="/DATA/AppData/portfolio/index.html" TARGET="/DATA/AppData/portfolio/index.html"
echo "=== Portfolio Deployment Started ===" echo "=== Portfolio Deployment Started ==="
@@ -32,7 +32,7 @@ jobs:
git fetch origin git fetch origin
git checkout main git checkout main
git reset --hard origin/main git reset --hard origin/main
echo "Copying index.html to nginx volume..." echo "Publishing index.html to nginx volume..."
cp index.html /tmp/pf-index.html cp index.html /tmp/pf-index.html
echo "125icko@" | su -c "cp /tmp/pf-index.html $TARGET && echo DEPLOYED-OK" echo "125icko@" | su -c "cp /tmp/pf-index.html $TARGET && echo DEPLOYED-OK"
echo "=== Deployment Completed ===" echo "=== Deployment Completed ==="