From f63a79a62407db852019405518092776da083ec0 Mon Sep 17 00:00:00 2001 From: Adibov Date: Thu, 23 Nov 2023 22:52:11 +0330 Subject: [PATCH] ci: copy deployment directory to the VM on deploy --- .github/workflows/deploy.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index bd20f4a..f3e0770 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -43,7 +43,7 @@ jobs: username: ${{ vars.VM_USERNAME }} key: ${{ secrets.SSH_PRIVATE_KEY }} overwrite: true - source: docker-compose.yml + source: "docker-compose.yml,deployment" target: /home/${{ vars.VM_USERNAME }}/AAISS-2023 - name: Deploy to the VM @@ -54,4 +54,4 @@ jobs: key: ${{ secrets.SSH_PRIVATE_KEY }} # TODO: handle envs script: | - docker compose -f AAISS-2023/docker-compose.yml up -d --pull always \ No newline at end of file + docker compose -f AAISS-2023/docker-compose.yml up -d --pull always --force-recreate \ No newline at end of file