Skip to content

Commit

Permalink
Add SSH to login
Browse files Browse the repository at this point in the history
  • Loading branch information
AlenGeoAlex committed Oct 12, 2024
1 parent cc2d999 commit f4b2fa8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,7 @@ jobs:

- name: Move docker-compose to final destination
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.VM_USERNAME }}@${{ secrets.VM_HOST }} "sudo mv /tmp/docker-compose.yml /etc/opt/my-serve/docker-compose.yml"
echo "${{ secrets.SSH_KEY }}" > private_key
chmod 600 private_key # Set appropriate permissions
ssh -i private_key -o StrictHostKeyChecking=no ${{ secrets.VM_USERNAME }}@${{ secrets.VM_HOST }} "sudo mv /tmp/docker-compose.yml /etc/opt/my-serve/docker-compose.yml"
rm private_key # Clean up

0 comments on commit f4b2fa8

Please sign in to comment.