Skip to content

Commit

Permalink
Create deptest.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ronbruins authored Nov 10, 2024
1 parent 3009d29 commit 17addbb
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/deptest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deploy to server
on: push
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up SSH key
run: |
env
mkdir -p ~/.ssh
echo "${{ secrets.PRIVATE_SSH_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -p 2271 ${{ secrets.HOST }} >> ~/.ssh/known_hosts
sudo apt-get install sshpass
- name: Deploy to server
run: |
sshpass -p '${{ secrets.PSWD }}' ssh -v -o StrictHostKeyChecking=no ${{ secrets.USER }}@${{ secrets.HOST }} <<'ENDSSH'
touch /tmp/git_deploy

0 comments on commit 17addbb

Please sign in to comment.