-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
32c63c0
commit de190da
Showing
4 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: CI/CD Pipeline | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
services: | ||
docker: | ||
image: docker:19.03.12 | ||
options: --privileged | ||
ports: | ||
- 5434:5432 | ||
- 5435:5432 | ||
- 5436:5432 | ||
- 5437:5432 | ||
- 5438:5432 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' | ||
|
||
- name: Build with Quarkus | ||
run: | | ||
cd catalog/ | ||
cd catalog-service/ | ||
quarkus build | ||
- name: Run Quarkus tests | ||
run: | | ||
cd catalog/ | ||
cd catalog-service/ | ||
quarkus test | ||
- name: Build and run Docker Compose | ||
run: | | ||
docker-compose -f docker-compose.yml up --build -d | ||
- name: Deploy | ||
run: | | ||
docker-compose -f docker-compose.yml up -d |