Skip to content

Commit

Permalink
modify command
Browse files Browse the repository at this point in the history
  • Loading branch information
devout-coder committed Sep 7, 2024
1 parent 242c826 commit a8c1142
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ jobs:

steps:
# Adding SSH key
- name: Add SSH Key
- name: Set up SSH key
run: |
echo "${{ secrets.EC2_KEY }}" | tr -d '\r' > ~/.ssh/id_rsa
mkdir -p ~/.ssh
echo "${{ secrets.EC2_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
# SSH into EC2 and use docker-compose
- name: Deploy to EC2 using Docker Compose
Expand Down

0 comments on commit a8c1142

Please sign in to comment.