Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mohit-nagaraj committed Sep 1, 2024
1 parent 7b00542 commit 1f3eff6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:

- name: Log in to Amazon ECR
uses: aws-actions/amazon-ecr-login@v2
with:
region: ${{ secrets.AWS_REGION }}

- name: Build and push socket Docker image
run: |
Expand All @@ -41,7 +39,7 @@ jobs:
--tag ${{ secrets.ECR_SERVER_REPO_URI }}:latest \
--build-arg PORT=5000 \
--build-arg MONGO_URI=${{ secrets.MONGO_URI }} \
--build-arg JWT_SECRET=${{ secrets.JWT_SECRET }} \
--build-arg JWT_KEY=${{ secrets.JWT_KEY }} \
--file ./server/Dockerfile \
./server --push
Expand Down Expand Up @@ -71,5 +69,9 @@ jobs:
docker stop server-app || true
docker rm server-app || true
docker run -d --name server-app -p 5000:5000 ${{ secrets.ECR_SERVER_REPO_URI }}:latest
docker run -d --name server-app -p 5000:5000 \
-e PORT=5000 \
-e MONGO_URI=${{ secrets.MONGO_URI }} \
-e JWT_KEY=${{ secrets.JWT_KEY }} \
${{ secrets.ECR_SERVER_REPO_URI }}:latest
EOF

0 comments on commit 1f3eff6

Please sign in to comment.