Skip to content

Commit

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

* fix stage workflow
  • Loading branch information
elenashovtyuk authored and MikeWazowskyi committed Sep 3, 2023
1 parent 5fc7fd0 commit a2b91a4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/deploy-bot-on-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ jobs:
name: stage_deploy
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v2
- name: Run a multi-line script
run: |
mkdir ../build
cp -TR . ../build
tar -cvf deploy.tar ../build/
- name: copy service file
# - uses: actions/checkout@v2
# - name: Run a multi-line script
# run: |
# mkdir ../build
# cp -TR ./infra/dev ../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: "deploy.tar"
source: "./infra/dev"
target: /home/deploy/spread_wings_bot/infra/dev/
- name: ssh pull and start
uses: appleboy/ssh-action@master
Expand Down

0 comments on commit a2b91a4

Please sign in to comment.