Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
KhaledAshrafH committed May 21, 2023
2 parents 30affdf + 8915622 commit 567a591
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3


- name: Login to Docker Hub
Expand All @@ -25,13 +25,9 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./docker-compose.yml
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/students_registration_system:latest
- name: Build and run docker-compose
run: |
docker-compose up -d
- name: Run docker compose (Test)
uses: isbang/[email protected]
Expand All @@ -46,4 +42,4 @@ jobs:
- name: Run Test in student-statistics-process service
run: |
docker exec -it students_registration_system-student-statistics-process-1 bash
java Main
java Main
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ services:
student-statistics-process:
image: 5aleda4rf/student-statistics-process
volumes:
- C:\Users\5aleda4rf\IdeaProjects\students_registration_system\app\data\batch:/app/data/batch
- C:/Users/5aleda4rf/IdeaProjects/students_registration_system/app/data/batch:/app/data/batch
ports:
- "80:80"
stdin_open: true
tty: true
registeration-process:
image: 5aleda4rf/registeration-process
volumes:
- C:\Users\5aleda4rf\IdeaProjects\students_registration_system\app\data\batch:/app/data/batch
- C:/Users/5aleda4rf/IdeaProjects/students_registration_system/app/data/batch:/app/data/batch
ports:
- "81:81"
stdin_open: true
Expand Down

0 comments on commit 567a591

Please sign in to comment.