diff --git a/.gitea/workflows/deploy-test.yml b/.gitea/workflows/deploy-test.yml index 29585e2..66be23a 100755 --- a/.gitea/workflows/deploy-test.yml +++ b/.gitea/workflows/deploy-test.yml @@ -36,19 +36,19 @@ jobs: mkdir -p ~/.ssh echo "$DEPLOY_SSH_KEY" > ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519 - ssh-keyscan -H 188.245.242.194 >> ~/.ssh/known_hosts 2>/dev/null + ssh-keyscan -H -p 9716 46.225.136.66 >> ~/.ssh/known_hosts 2>/dev/null echo "✅ SSH key configured" - name: Verify SSH connectivity if: env.skip_deploy != '1' run: | - ssh -o StrictHostKeyChecking=yes -i ~/.ssh/id_ed25519 \ - haustest@188.245.242.194 "echo 'SSH-OK as:' \$(whoami) 'on' \$(hostname)" + ssh -o StrictHostKeyChecking=yes -i ~/.ssh/id_ed25519 -p 9716 \ + root@46.225.136.66 "echo 'SSH-OK as:' \$(whoami) 'on' \$(hostname)" - name: Backup current test deployment if: env.skip_deploy != '1' run: | - ssh -i ~/.ssh/id_ed25519 haustest@188.245.242.194 \ + ssh -i ~/.ssh/id_ed25519 -p 9716 root@46.225.136.66 \ "cd /home/haustest/htdocs && \ tar czf /home/haustest/backup-pre-deploy-\$(date +%Y%m%d-%H%M%S).tar.gz \ haus.test.kies-media.de && \ @@ -83,8 +83,16 @@ jobs: --exclude='.stylelintrc.json' \ --exclude='.editorconfig' \ --exclude='.well-known' \ - -e "ssh -i ~/.ssh/id_ed25519" \ - ./ haustest@188.245.242.194:/home/haustest/htdocs/haus.test.kies-media.de/ + -e "ssh -i ~/.ssh/id_ed25519 -p 9716" \ + ./ root@46.225.136.66:/home/haustest/htdocs/haus.test.kies-media.de/ + + - name: Fix ownership and install dependencies + if: env.skip_deploy != '1' + run: | + ssh -i ~/.ssh/id_ed25519 -p 9716 root@46.225.136.66 \ + "cd /home/haustest/htdocs/haus.test.kies-media.de && \ + COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev --no-interaction --no-progress && \ + chown -R haustest:haustest /home/haustest/htdocs/haus.test.kies-media.de" - name: Smoke test if: env.skip_deploy != '1' @@ -129,6 +137,6 @@ jobs: echo "- **Target:** https://haus.test.kies-media.de" >> $GITHUB_STEP_SUMMARY echo "- **Branch:** \`${{ github.ref_name }}\`" >> $GITHUB_STEP_SUMMARY echo "- **Commit:** \`${{ github.sha }}\`" >> $GITHUB_STEP_SUMMARY - echo "- **Server:** haustest@188.245.242.194" >> $GITHUB_STEP_SUMMARY + echo "- **Server:** root@46.225.136.66:9716 (cp3)" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY echo "**Review URL:** https://haus.test.kies-media.de" >> $GITHUB_STEP_SUMMARY