This commit is contained in:
parent
8cba5a55b1
commit
ad2ff7b82e
1 changed files with 28 additions and 0 deletions
28
.forgejo/workflows/deploy.yml
Normal file
28
.forgejo/workflows/deploy.yml
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
name: Deploy Palico Bot
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: docker
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Deploy on WebApps
|
||||||
|
env:
|
||||||
|
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y openssh-client
|
||||||
|
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
printf '%s\n' "$DEPLOY_SSH_KEY" > ~/.ssh/id_ed25519
|
||||||
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
|
|
||||||
|
ssh -o StrictHostKeyChecking=no \
|
||||||
|
-i ~/.ssh/id_ed25519 \
|
||||||
|
-p 2911 \
|
||||||
|
shinuwa@192.168.0.100 \
|
||||||
|
"sudo /usr/local/bin/deploy-palico-bot"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue