Skip to content

Commit 0cbea21

Browse files
authored
Merge pull request #1 from arman0x/feature/github-actions
add actions CI pipeline
2 parents 4b64aab + be2ca3a commit 0cbea21

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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

0 commit comments

Comments
 (0)