Skip to content

Commit

Permalink
BUILD - test ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
vladokuskov committed Mar 19, 2024
1 parent 7798704 commit ffea93e
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,21 @@ jobs:
- name: Copy repository contents via scp
uses: appleboy/scp-action@master
env:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
port: ${{ secrets.PORT }}
key: ${{ secrets.SSHKEY }}
source: "."
target: "/servers_folder/minddaily-frontend/"
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT}}
source: '.'
target: "/home/ubuntu/dev-folder"

- name: Executing remote command
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
port: ${{ secrets.PORT }}
key: ${{ secrets.SSHKEY }}
script: ls
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT}}
source: '.'
command_timeout: 10m
script: cd dev-folder;
ls

0 comments on commit ffea93e

Please sign in to comment.