Skip to content

main: Change to test deploy workflow #2

main: Change to test deploy workflow

main: Change to test deploy workflow #2

Workflow file for this run

name: Build & Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Deploy to VPS using ssh & docker-compose
uses: appleboy/[email protected]
with:
host: ${{ secrets.VPS_HOST }}
username: ${{ secrets.VPS_USERNAME }}
password: ${{ secrets.VPS_PASSWORD }}
port: 22
script: |
cd HomeFinancier/deployment
docker-compose stop
docker-compose rm -f
git pull
docker-compose up -d --build