Skip to content

Commit 5e70691

Browse files
committed
docs: optimize event-service pipeline for monorepo structure
1 parent 9d833ea commit 5e70691

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

‎.github/workflows/event-service-deploy.yml‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,27 @@ name: Deploy Event Service to Amazon ECS
22

33
on:
44
push:
5-
branches: [ "main" ] # Pipeline runs every time you push to main
5+
branches: [ "main" ]
6+
# PRO TIP: Only run this pipeline if files in the event-service folder change
7+
paths:
8+
- 'event-service/**'
69

710
env:
811
AWS_REGION: us-east-1
912
ECR_REPOSITORY: event-service
1013
ECS_SERVICE: event-service
1114
ECS_CLUSTER: stream-seat-cluster
12-
CONTAINER_NAME: event-service-container # Make sure this matches your Task Definition
15+
CONTAINER_NAME: event-service-container
1316

1417
jobs:
1518
deploy:
1619
runs-on: ubuntu-latest
20+
21+
# This tells GitHub to run all 'run' commands inside the event-service directory
22+
defaults:
23+
run:
24+
working-directory: ./event-service
25+
1726
steps:
1827
- name: Checkout Code
1928
uses: actions/checkout@v4
@@ -43,7 +52,7 @@ jobs:
4352
env:
4453
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
4554
run: |
46-
# Use buildx for the AMD64 architecture we need for Fargate
55+
# buildx is used for AMD64 compatibility on Fargate
4756
docker buildx create --use
4857
docker buildx build --platform linux/amd64 \
4958
-t $ECR_REGISTRY/$ECR_REPOSITORY:latest \

0 commit comments

Comments
 (0)