Skip to content

Updated worflow and poetry version #31

Updated worflow and poetry version

Updated worflow and poetry version #31

Workflow file for this run

name: Deploying to VPS
on:
push:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: SSH setup and run commands
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
key: ${{ secrets.SSH_KEY }}
username: ${{ secrets.SSH_USER }}
passphrase: ${{ secrets.SSH_PASSPHRASE }}
script: |
cd ./deploy/${{ github.event.repository.name }}
git pull
docker rm -f ${{ github.event.repository.name }} || true
docker build -t ${{ github.repository }} .
docker run -d -p 5000:5000 --name ${{ github.event.repository.name }} ${{ github.repository }}