ci: point deploy-test workflow to new server cp3 (46.225.136.66:9716)
- old server 188.245.242.194 is unreachable (cp-server-1 ALT, forensic only) - switch SSH user from haustest to root (chown added in new step) - add composer install --no-dev (vendor/ is gitignored) - update ssh-keyscan to new IP + port
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user