From 234c0dc34d98ed3da8b5abac94fde37b97351560 Mon Sep 17 00:00:00 2001 From: qlido Date: Thu, 7 Dec 2023 13:11:02 +0900 Subject: [PATCH] =?UTF-8?q?=EC=99=84=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gradle.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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