diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 68a2e5e..c7cf806 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -42,3 +42,16 @@ jobs: # Docker Hub push (4) - name: docker Hub push run: docker push qlido/sinp + + - name: Connect to WAS & Execute Application + uses: appleboy/ssh-action@v0.1.6 + with: + host: ${{ secrets.WAS_HOST }} + username: ${{ secrets.WAS_USERNAME }} + key: ${{ secrets.SSH_KEY }} + port: ${{ secrets.WAS_SSH_PORT }} + script: | + cd /home/ubuntu/Something-Hilarious-Backend + docker-compose stop + docker-compose pull + docker-compose up -d \ No newline at end of file