File tree 3 files changed +32
-14
lines changed
3 files changed +32
-14
lines changed Original file line number Diff line number Diff line change @@ -24,19 +24,19 @@ jobs:
24
24
context : .
25
25
file : ./docker/Dockerfile.user
26
26
push : true
27
- tags : 100xdevs /week-18-class :latest # Replace with your Docker Hub username and repository
27
+ tags : noelleasta69 /week-18-cicd :latest # Replace with your Docker Hub username and repository
28
28
29
29
- name : Verify Pushed Image
30
- run : docker pull 100xdevs /week-18-class :latest # Replace with your Docker Hub username and repository
30
+ run : docker pull noelleasta69 /week-18-cicd :latest # Replace with your Docker Hub username and repository
31
31
32
- - name : Deploy to EC2
33
- uses : appleboy/ssh-action@master
34
- with :
35
- host : ${{ secrets.SSH_HOST }}
36
- username : ${{ secrets.SSH_USERNAME }}
37
- key : ${{ secrets.SSH_KEY }}
38
- script : |
39
- sudo docker pull 100xdevs/week-18-class:latest
40
- sudo docker stop web-app || true
41
- sudo docker rm web-app || true
42
- sudo docker run -d --name web-app -p 3005:3000 100xdevs/week-18-class:latest
32
+ # - name: Deploy to EC2
33
+ # uses: appleboy/ssh-action@master
34
+ # with:
35
+ # host: ${{ secrets.SSH_HOST }}
36
+ # username: ${{ secrets.SSH_USERNAME }}
37
+ # key: ${{ secrets.SSH_KEY }}
38
+ # script: |
39
+ # sudo docker pull 100xdevs/week-18-class:latest
40
+ # sudo docker stop web-app || true
41
+ # sudo docker rm web-app || true
42
+ # sudo docker run -d --name web-app -p 3005:3000 100xdevs/week-18-class:latest
Original file line number Diff line number Diff line change
1
+ FROM node:20.12.0-alpine3.19
2
+
3
+ WORKDIR /usr/src/app
4
+
5
+ COPY package.json package-lock.json turbo.json tsconfig.json ./
6
+
7
+ COPY apps ./apps
8
+ COPY packages ./packages
9
+
10
+ # Install dependencies
11
+ RUN npm install
12
+ # Can you add a script to the global package.json that does this?
13
+ RUN npm run db:generate
14
+
15
+ # Can you filter the build down to just one app?
16
+ RUN npm run build
17
+
18
+ CMD ["npm" , "run" , "start-user-app" ]
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import express from "express";
2
2
import db from "@repo/db/client" ;
3
3
const app = express ( ) ;
4
4
5
- app . use ( express . json ( ) )
5
+ app . use ( express . json ( ) ) // commnet
6
6
7
7
app . post ( "/hdfcWebhook" , async ( req , res ) => {
8
8
//TODO: Add zod validation here?
You can’t perform that action at this time.
0 commit comments