This commit is contained in:
parent
f469ed2d5e
commit
a68cfaa0d7
|
|
@ -7,18 +7,23 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Deploy AstraOS folder
|
- name: Install rsync + ssh
|
||||||
uses: appleboy/scp-action@v0.1.7
|
run: |
|
||||||
with:
|
apt-get update
|
||||||
host: 127.0.0.1
|
apt-get install -y rsync openssh-client
|
||||||
username: astraos
|
|
||||||
key: ${{ secrets.DEPLOY_KEY }}
|
- name: Add SSH key
|
||||||
port: 22
|
run: |
|
||||||
source: "AstraOS/*"
|
mkdir -p ~/.ssh
|
||||||
target: "/home/astraos/Astra-OS-Panel"
|
echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_ed25519
|
||||||
overwrite: true
|
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/
|
||||||
Loading…
Reference in a new issue