Skip to content

Commit

Permalink
chore: it updates deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusdoedev committed Sep 28, 2023
1 parent 40f848b commit aa2de8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ jobs:
- name: Creating a private key
run: |
mkdir ~/.ssh
echo ${{ secrets.SSH_KEY }} > ~/.ssh/id_rsa
echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_rsa
chmod 400 ~/.ssh/id_rsa
- name: Acessing EC2 instance
run: |
sudo apt update
sudo apt install ssh
ssh -i ~/.ssh/id_rsa ${{ secrets.AWS_EC2_USERNAME }}@${{ secrets.AWS_EC2_HOST }}
sudo ssh -i ~/.ssh/id_rsa ${{ secrets.AWS_EC2_USERNAME }}@${{ secrets.AWS_EC2_HOST }}
- name: Pulling docker image
run: sudo docker pull ${{ secrets.DOCKER_USERNAME }}/${{ env.CONTAINER_NAME }}
Expand Down

0 comments on commit aa2de8e

Please sign in to comment.