Auto Deploy Fixed
Some checks failed
Deploy AstraOS Panel / deploy (push) Failing after 11s

This commit is contained in:
MrWhiff 2026-02-26 23:22:59 +00:00
parent f469ed2d5e
commit a68cfaa0d7

View file

@ -7,18 +7,23 @@ on:
jobs:
deploy:
runs-on: docker
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Deploy AstraOS folder
uses: appleboy/scp-action@v0.1.7
with:
host: 127.0.0.1
username: astraos
key: ${{ secrets.DEPLOY_KEY }}
port: 22
source: "AstraOS/*"
target: "/home/astraos/Astra-OS-Panel"
overwrite: true
- name: Install rsync + ssh
run: |
apt-get update
apt-get install -y rsync openssh-client
- name: Add SSH key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -p 22 127.0.0.1 >> ~/.ssh/known_hosts
- name: Deploy AstraOS folder to server
run: |
rsync -av --delete \
./AstraOS/ astraos@127.0.0.1:/home/astraos/Astra-OS-Panel/