diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 5324dbd..b6a9cae 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -29,4 +29,20 @@ jobs: context: . file: ./service/Dockerfile push: true - tags: git.rhost.ovh/${{ github.repository }}:latest \ No newline at end of file + tags: git.rhost.ovh/${{ github.repository }}:latest + deploy: + needs: build + runs-on: ubuntu-latest + + steps: + - name: Deploy via SSH + uses: appleboy/ssh-action@v1.2.0 + port: ${{ secrets.SERVER_PORT }} + with: + host: ${{ secrets.SERVER_HOST }} + username: ${{ secrets.SERVER_USER }} + key: ${{ secrets.SERVER_SSH_KEY }} + script: | + cd /home/ryjek/docker/updateip + docker compose pull + docker compose up -d \ No newline at end of file