This commit is contained in:
18
.gitea/workflows/deploy.yml
Normal file
18
.gitea/workflows/deploy.yml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
name: Remote Deploy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Deploy latest code on remote server
|
||||||
|
run: |
|
||||||
|
echo "$SSH_KEY" > key.pem
|
||||||
|
chmod 600 key.pem
|
||||||
|
ssh -i key.pem -o StrictHostKeyChecking=no root@10.20.30.102 'bash pull.sh'
|
||||||
|
env:
|
||||||
|
SSH_KEY: ${{ secrets.SSH_KEY }}
|
||||||
Reference in New Issue
Block a user