File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # .github/workflows/ci.yml
2+ name : EventBookingAPI CI
3+
4+ on :
5+ push :
6+ branches : [ "main" ]
7+ pull_request :
8+ branches : [ "main" ]
9+
10+ jobs :
11+ build-and-validate :
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : Checkout repository
16+ uses : actions/checkout@v4
17+
18+ - name : Setup .NET 9
19+ uses : actions/setup-dotnet@v4
20+ with :
21+ dotnet-version : ' 9.0.x'
22+
23+ - name : Restore solution
24+ run : dotnet restore EventBookingAPI.sln
25+
26+ - name : Build solution
27+ run : dotnet build EventBookingAPI.sln --configuration Release --no-restore
28+
29+ - name : Build BookingService Docker image
30+ run : docker build -t eventbooking-booking ./BookingService -f ./BookingService/Presentation/Dockerfile
31+
32+ - name : Build PaymentService Docker image
33+ run : docker build -t eventbooking-payment ./PaymentService -f ./PaymentService/Presentation/Dockerfile
You can’t perform that action at this time.
0 commit comments