File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,14 +19,26 @@ jobs:
1919 - name : Build API Docker image
2020 run : docker build ./api/ -t echelonkay/devops-qr-code-api:latest --no-cache
2121
22- # Step 4: Build Frontend Docker image
22+ # Step 4: Install dependencies for Frontend
23+ - name : Install dependencies for Frontend
24+ run : |
25+ cd front-end-nextjs
26+ npm install
27+
28+ # Step 5: Build Frontend
29+ - name : Build Frontend
30+ run : |
31+ cd front-end-nextjs
32+ npm run build
33+
34+ # Step 6: Build Frontend Docker image
2335 - name : Build Frontend Docker image
2436 run : docker build ./front-end-nextjs/ -t echelonkay/devops-qr-code-frontend:latest --no-cache
2537
26- # Step 5 : Push API Docker image to Docker Hub
38+ # Step 7 : Push API Docker image to Docker Hub
2739 - name : Push API Docker image
2840 run : docker push echelonkay/devops-qr-code-api:latest
2941
30- # Step 6 : Push Frontend Docker image to Docker Hub
42+ # Step 8 : Push Frontend Docker image to Docker Hub
3143 - name : Push Frontend Docker image
3244 run : docker push echelonkay/devops-qr-code-frontend:latest
You can’t perform that action at this time.
0 commit comments