Skip to content

Commit

Permalink
demo deployment to aws ec2
Browse files Browse the repository at this point in the history
  • Loading branch information
integrationninjas committed Apr 6, 2024
1 parent 8de9757 commit bc1cab8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Checkout source
uses: actions/checkout@v4
- name: Create .env file
run: echo "MONGO_PASSWORD=${{ secrets.MONGO_PASSWORD }}>.env"
run: echo "MONGO_PASSWORD=${{ secrets.MONGO_PASSWORD }} >> .env"
- name: Login to docker hub
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- name: Build docker image
Expand All @@ -29,4 +29,4 @@ jobs:
- name: Delete old container
run: docker rm -f nodejs-app-container
- name: Run docker container
run: docker container -d -p 4000:4000 --name nodejs-app-container integrationninjas/nodejs-app
run: docker run -d -p 4000:4000 --name nodejs-app-container integrationninjas/nodejs-app

0 comments on commit bc1cab8

Please sign in to comment.