Skip to content

Commit

Permalink
Merge pull request #19 from matheusdoedev/feat/workflow
Browse files Browse the repository at this point in the history
fix: it fixes workflow SSH Deploy step
  • Loading branch information
matheusdoedev authored Sep 28, 2023
2 parents 1ac2b53 + 5613129 commit 47d302b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ jobs:
key: ${{ secrets.KEY }}
port: 22
script: |
sudo docker stop ${{ env.IMAGE_NAME }}
sudo docker rm ${{ env.IMAGE_NAME }}
sudo docker stop ${{ env.CONTAINER_NAME }}
sudo docker rm ${{ env.CONTAINER_NAME }}
sudo docker rmi ${{ env.IMAGE_NAME }}
sudo docker pull ${{ env.IMAGE_NAME }}
sudo docker run -d --name ${{ env.CONTAINER_NAME }} -p 80:80 ${{ env.IMAGE_NAME }}
sudo docker exec -it -w /usr/src/app ${{ env.CONTAINER_NAME }} sh
echo "${{ secrets.VITE_INTERVIEW_API_URL }}" > .env

0 comments on commit 47d302b

Please sign in to comment.