Skip to content

Commit

Permalink
Corrige atribuição de chave ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
GilbertoJNJ committed Feb 8, 2024
1 parent fbb3c9a commit 64c787b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ jobs:
username: ${{ secrets.EC2_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
ssh ${{ secrets.EC2_USERNAME }}@${{ secrets.EC2_HOST }} 'docker run -d --name logistock -p 80:8080 logistock-image'
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ssh_key.pem
chmod 600 ssh_key.pem
ssh -i "ssh_key.pem" ${{ secrets.EC2_USERNAME }}@${{ secrets.EC2_HOST }} 'docker run -d --name logistock -p 80:8080 logistock-image'
# - name: Deploy to EC2
# uses: appleboy/ssh-action@master
Expand Down

0 comments on commit 64c787b

Please sign in to comment.