This commit is contained in:
@@ -30,5 +30,17 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Deploy notification
|
- name: Deploy to VPS
|
||||||
run: echo "Build successful! Deploy step would go here"
|
env:
|
||||||
|
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
run: |
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
|
||||||
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
|
ssh-keyscan -H 51.210.247.57 >> ~/.ssh/known_hosts
|
||||||
|
ssh debian@51.210.247.57 << 'EOF'
|
||||||
|
cd /home/debian/markdown2pngv2
|
||||||
|
git pull origin main
|
||||||
|
cd /home/debian/gitea
|
||||||
|
docker-compose up -d --build markdown2pngv2
|
||||||
|
EOF
|
||||||
Reference in New Issue
Block a user