Skip to content

Commit

Permalink
test: deploy 5
Browse files Browse the repository at this point in the history
  • Loading branch information
meowsl committed May 17, 2024
1 parent 0d7cde5 commit 95d0631
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST_IP }}
username: ${{ secrets.HOST_USERNAME }}
password: ${{ secrets.HOST_PASSWORD }}
script: |
ls -la ~/glory-trees
- uses: actions/checkout@v2

- name: install keys
run: |
install -m 600 -D /dev/null ~/.ssh/id_rsa
echo "${{ secrets.HOST_SSH_KEY }}" > ~/.ssh/id_rsa
ssh-keyscan -H ${{ secrets.HOST_IP }} > ~/.ssh/known_hosts
- name: connect and pull
run: |
ssh ${{ secrets.HOST_USERNAME }}@${{ secrets.HOST_IP }} "docker compose pull"

0 comments on commit 95d0631

Please sign in to comment.