ssh again
Deploy PBT / deploy (push) Failing after 9s

This commit is contained in:
2026-09-09 19:40:26 +02:00
parent 7bd2c4528a
commit 06ff1d2dd6
+9 -6
View File
@@ -4,6 +4,9 @@ on:
push: push:
branches: [main] branches: [main]
env:
HOME: /root
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -16,15 +19,15 @@ jobs:
- name: SSH-Key als Datei anlegen - name: SSH-Key als Datei anlegen
run: | run: |
mkdir -p ~/.ssh mkdir -p /root/.ssh
printf '%s\n' "${{ secrets.PBT_DEPLOY_KEY }}" > ~/.ssh/pbt_deploy_key printf '%s\n' "${{ secrets.PBT_DEPLOY_KEY }}" > /root/.ssh/pbt_deploy_key
chmod 600 ~/.ssh/pbt_deploy_key chmod 600 /root/.ssh/pbt_deploy_key
ssh-keyscan -H pbt >> ~/.ssh/known_hosts ssh-keyscan -H pbt >> /root/.ssh/known_hosts
- name: Dateien auf die pbt-LXC syncen - name: Dateien auf die pbt-LXC syncen
run: | run: |
rsync -avz --delete \ rsync -avz --delete \
-e "ssh -i ~/.ssh/pbt_deploy_key -o UserKnownHostsFile=~/.ssh/known_hosts" \ -e "ssh -i /root/.ssh/pbt_deploy_key -o UserKnownHostsFile=/root/.ssh/known_hosts" \
--exclude '.git' \ --exclude '.git' \
--exclude '.gitea' \ --exclude '.gitea' \
--exclude 'venv' \ --exclude 'venv' \
@@ -33,7 +36,7 @@ jobs:
- name: Abhängigkeiten installieren & Service neu starten - name: Abhängigkeiten installieren & Service neu starten
run: | run: |
ssh -i ~/.ssh/pbt_deploy_key -o UserKnownHostsFile=~/.ssh/known_hosts deploy@pbt ' ssh -i /root/.ssh/pbt_deploy_key -o UserKnownHostsFile=/root/.ssh/known_hosts deploy@pbt '
set -e set -e
cd /opt/pbt cd /opt/pbt
python3 -m venv venv python3 -m venv venv