Skip to content

Commit

Permalink
chore: remove env form ssh script
Browse files Browse the repository at this point in the history
  • Loading branch information
prakashchoudhary07 committed May 30, 2024
1 parent 00cf229 commit fab1c04
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/deploy-to-ec2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,10 @@ jobs:

- name: Deploy to EC2
uses: appleboy/ssh-action@master
env:
RDS_PUBLIC_KEY: ${{secrets.RDS_PUBLIC_KEY}}
with:
host: ${{ secrets.AWS_EC2_HOST }}
username: ${{ secrets.AWS_EC2_USERNAME }}
key: ${{ secrets.AWS_EC2_SSH_PRIVATE_KEY }}
envs: RDS_PUBLIC_KEY
key: ${{ secrets.AWS_EC2_SSH_PRIVATE_KEY }}
script: |
docker pull ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}:latest
docker stop ${{ github.event.repository.name }}-${{ vars.ENV }} || true
Expand Down

0 comments on commit fab1c04

Please sign in to comment.