diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ccc3e19..1985523 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,3 +36,17 @@ jobs: with: push: true tags: ${{ secrets.DOCKERHUB_USERNAME }}/python-ci:latest + + - + name: Deploy + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + key: ${{ secrets.KEY }} + port: ${{ secrets.PORT }} + script: | + docker pull ${{ secrets.DOCKERHUB_USERNAME }}/python-ci:latest + docker run -d -p 5000:5000 ${{ secrets.DOCKERHUB_USERNAME }}/python-ci:latest + + \ No newline at end of file