Skip to content

Commit

Permalink
chore: fix typos on deploy github action
Browse files Browse the repository at this point in the history
  • Loading branch information
brunocroh committed May 13, 2024
1 parent bd2df69 commit 4e3160d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ jobs:
- name: Build and push Docker image
run: |
docker build -t bolhadev-chat --build-arg PROJECT=server .
docker tag whatsapp-newsletter:latest ${{ envs.DOCKER_REPO}}:latest
docker login -u ${{ envs.DOCKER_USERNAME }} -p ${{secrets.DOCKER_TOEKEN}}
docker push ${{ envs.DOCKER_REPO}}:latest
docker tag whatsapp-newsletter:latest ${{ env.DOCKER_REPO}}:latest
docker login -u ${{ env.DOCKER_USERNAME }} -p ${{secrets.DOCKER_TOEKEN}}
docker push ${{ env.DOCKER_REPO}}:latest
- name: SSH into EC2 instance and deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USERNAME }}
key: ${{ secrets.MY_EC2_SSH_KEY }}
script: |
sudo docker pull ${{ envs.DOCKER_REPO }}:latest
sudo docker pull ${{ env.DOCKER_REPO }}:latest
sudo docker stop my-node-app || true
sudo docker rm my-node-app || true
sudo docker run -d -p 3000:3000 --name my-node-app ${{ envs.DOCKER_REPO }}:latest
sudo docker run -d -p 3000:3000 --name my-node-app ${{ env.DOCKER_REPO }}:latest

0 comments on commit 4e3160d

Please sign in to comment.