From 32a5868bae034d74f0124280dcb06c6a8ceec57d Mon Sep 17 00:00:00 2001 From: Elena Shovtyuk <110084590+elenashovtyuk@users.noreply.github.com> Date: Mon, 4 Sep 2023 22:29:46 +0300 Subject: [PATCH] Feature/realize service for stage and prod (#279) * fix stage workflow * fix stage workflow * fix stage workflow * Fix stage workflow * fix workflow * fix stage workflow * fix stage workflow --- .github/workflows/deploy-bot-on-stage.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-bot-on-stage.yml b/.github/workflows/deploy-bot-on-stage.yml index 7022a12..2ef0785 100644 --- a/.github/workflows/deploy-bot-on-stage.yml +++ b/.github/workflows/deploy-bot-on-stage.yml @@ -18,14 +18,14 @@ jobs: run: | mkdir ../build cp -TR ./infra/dev ../build - # tar -cvf deploy.tar ../build/ + tar -cvf deploy.tar ../build/ - name: copy infra/dev uses: appleboy/scp-action@v0.1.4 with: host: ${{ secrets.VM_HOST }} username: ${{ secrets.VM_USER }} password: ${{ secrets.VM_PASSWORD }} - source: ../build/ + source: "deploy.tar" target: /home/deploy/spread_wings_bot/infra/dev/ - name: ssh pull and start uses: appleboy/ssh-action@master @@ -35,6 +35,7 @@ jobs: password: ${{ secrets.VM_PASSWORD }} script: | cd /home/deploy/spread_wings_bot/infra/dev/ + tar -xvf deploy.tar rm .env touch .env