Skip to content

Commit 78625ca

Browse files
committed
updating the path to front-end folder in yml file
1 parent ee6a5a1 commit 78625ca

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/front-end.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ name: Frontend CI/CD
33
on:
44
push:
55
branches: [main]
6+
paths:
7+
- "front-end/**"
68

79
jobs:
810
build-frontend:
911
runs-on: ubuntu-latest
12+
timeout-minutes: 15
1013
defaults:
1114
run:
1215
working-directory: front-end
@@ -34,7 +37,11 @@ jobs:
3437

3538
deploy-frontend:
3639
runs-on: ubuntu-latest
40+
timeout-minutes: 15
3741
needs: build-frontend
42+
defaults:
43+
run:
44+
working-directory: front-end
3845
steps:
3946
- name: Checkout code
4047
uses: actions/checkout@v4
@@ -54,7 +61,7 @@ jobs:
5461
- name: Build Docker image
5562
uses: docker/build-push-action@v5
5663
with:
57-
context: ./front-end
58-
file: ./front-end/Dockerfile
64+
context: .
65+
file: ./Dockerfile
5966
push: true
6067
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/frontend-aws-integration:latest

0 commit comments

Comments
 (0)