-
Notifications
You must be signed in to change notification settings - Fork 0
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
8c05554
commit 3caec73
Showing
1 changed file
with
7 additions
and
14 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -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] | ||
|
@@ -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 |