Skip to content

Commit

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

* fix workflow

* fix stage workflow

---------

Co-authored-by: Konstantin Raikhert <69113745+KonstantinRaikhert@users.noreply.github.com>
  • Loading branch information
2 people authored and MikeWazowskyi committed Sep 3, 2023
1 parent 56ea905 commit 84556a6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/deploy-bot-on-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,20 @@ jobs:
name: stage_deploy
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v2
- name: Run a multi-line script
# uses: actions/checkout@v2
run: |
mkdir ../spread_wings_bot/infra/dev/
cp -TR . ../spread_wings_bot/infra/dev/
tar -cvf deploy.tar ../spread_wings_bot/infra/dev/
mkdir ../build
cp -TR . ../build
tar -cvf deploy.tar ../build/
- name: copy service file
uses: appleboy/scp-action@v0.1.4
with:
host: ${{ secrets.VM_HOST }}
username: ${{ secrets.VM_USER }}
password: ${{ secrets.VM_PASSWORD }}
source: "deploy.tar"
target: /home/deploy/spread_wings_bot/infra/dev/
target: /spread_wings_bot/infra/dev/
- name: ssh pull and start
uses: appleboy/ssh-action@master
with:
Expand Down

0 comments on commit 84556a6

Please sign in to comment.