Skip to content

Commit

Permalink
DEPLOY_KEY
Browse files Browse the repository at this point in the history
  • Loading branch information
raccoon-mh committed Jun 5, 2024
1 parent d07dace commit c94200a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ jobs:
- name: Build Buffalo app
run: |
cd api
buffalo build
buffalo build -o ./bin/raccoon-mh-playground
- name: Prepare SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.DEPLOY_KEY }}
# - name: Prepare SSH
# uses: webfactory/[email protected]
# with:
# ssh-private-key: ${{ secrets.DEPLOY_KEY }}

- name: Deploy to Server
run: |
scp -r ./api/bin/* ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_SERVER }}:${{ secrets.DEPLOY_PATH }}
ssh ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_SERVER }} 'bash -s' < ${{ secrets.DEPLOY_PATH }}/deploy_script.sh
scp -i ${{ secrets.DEPLOY_KEY }} -r ./api/bin/* ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_SERVER }}:${{ secrets.DEPLOY_PATH }}
ssh -i ${{ secrets.DEPLOY_KEY }} ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_SERVER }} 'bash -s' < ${{ secrets.DEPLOY_PATH }}/start.sh

0 comments on commit c94200a

Please sign in to comment.