From d085c6ba10e9f152cb3f4623ec28b3d6ea1be515 Mon Sep 17 00:00:00 2001 From: Aditya Jyoti Date: Wed, 25 Dec 2024 22:58:12 +0530 Subject: [PATCH] deploy: Setup SSH --- .github/workflows/deploy.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6e41ad3..9720346 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,4 +21,7 @@ jobs: key: ${{ secrets.SERVER_SSH_KEY }} port: 22 script: | - echo "hello world" + cd ${{ secrets.PROJECT_PATH }} + git pull origin master + docker-compose down + docker-compose up --build -d