Skip to content

Commit

Permalink
Feature/realize service for stage and prod (#279)
Browse files Browse the repository at this point in the history
* fix stage workflow

* fix stage workflow

* fix stage workflow

* Fix stage workflow

* fix workflow

* fix stage workflow

* fix stage workflow
  • Loading branch information
elenashovtyuk authored Sep 4, 2023
1 parent 9258874 commit 32a5868
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy-bot-on-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 32a5868

Please sign in to comment.