From 076de18eaa49119e979076c9c40157ab1842b58c Mon Sep 17 00:00:00 2001 From: Robinson Uchechukwu Date: Fri, 9 Aug 2024 18:52:53 +0100 Subject: [PATCH] Update staging.yml pull staging branch --- .github/workflows/staging.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 6a458a03..729c31ee 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -44,9 +44,9 @@ jobs: - name: Deploy and start on remote server run: | sshpass -p ${{ secrets.PASSWORD }} ssh -o StrictHostKeyChecking=no ${{ secrets.USERNAME }}@${{ secrets.HOST }} " - cd /var/www/aihomework/dev + cd /var/www/aihomework/staging git stash - git pull origin dev + git pull origin staging docker load -i /tmp/docker-images.tar.gz docker compose -f docker-compose.staging.yml down docker compose -f docker-compose.staging.yml up -d