Skip to content

Commit af6c636

Browse files
authored
Update build-docker.yaml
add .next
1 parent 9f6d254 commit af6c636

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/build-docker.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)