@@ -1,18 +0,0 @@
|
|||||||
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