chore: update poetry version #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/opensrc-website | |
git pull | |
docker rm -f opensrc-website || true | |
docker build -t opensrc-website . | |
docker run -d -p 5000:5000 --name opensrc-website opensrc-website |