Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
KhaledAshrafH authored May 21, 2023
1 parent 8c05554 commit 3caec73
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,24 @@ jobs:
build:
runs-on: ubuntu-latest




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


- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2


uses: docker/setup-buildx-action@v3

- 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
run: |
docker buildx bake -f ./docker-compose.yml web db --push --tag ${{ secrets.DOCKERHUB_USERNAME }}/students_registration_system:latest
- name: Run docker compose (Test)
uses: isbang/[email protected]
Expand All @@ -49,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

0 comments on commit 3caec73

Please sign in to comment.