Fix deploy: pakai 127.0.0.1 + token read-only
Some checks failed
Deploy Portfolio to Production / deploy (push) Failing after 1s
Some checks failed
Deploy Portfolio to Production / deploy (push) Failing after 1s
This commit is contained in:
@@ -19,7 +19,7 @@ jobs:
|
||||
run: |
|
||||
ssh -o ConnectTimeout=15 ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} << 'DEPLOY_SCRIPT'
|
||||
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"
|
||||
TARGET="/DATA/AppData/portfolio/index.html"
|
||||
echo "=== Portfolio Deployment Started ==="
|
||||
@@ -32,7 +32,7 @@ jobs:
|
||||
git fetch origin
|
||||
git checkout 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
|
||||
echo "125icko@" | su -c "cp /tmp/pf-index.html $TARGET && echo DEPLOYED-OK"
|
||||
echo "=== Deployment Completed ==="
|
||||
|
||||
Reference in New Issue
Block a user