Skip to content

Commit

Permalink
Add Docker build steps for messaging rest images
Browse files Browse the repository at this point in the history
New steps have been added to the Docker build workflow to create images for the messaging rest sender and receiver. Besides, the context and file for the event sourcing producer image have been updated to use correct paths. This ensures that the correct Docker images are built and used for the messaging components in the microservices system.
  • Loading branch information
nawaphonOHM committed Mar 16, 2024
1 parent dfc3687 commit 2468b4d
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/docker-build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,22 @@ jobs:
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/microservices-lab:shared_database

- name: Build messaging rest sender image
uses: docker/build-push-action@v5
with:
context: ./messaging/rest/sender
file: ./messaging/rest/sender/Dockerfile
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/microservices-lab:messaging.rest.sender

- name: Build messaging rest receiver image
uses: docker/build-push-action@v5
with:
context: ./messaging/rest/receiver
file: ./messaging/rest/receiver/Dockerfile
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/microservices-lab:messaging.rest.receiver

- name: Build event_sourcing consumer image
uses: docker/build-push-action@v5
with:
Expand All @@ -90,7 +106,7 @@ jobs:
- name: Build event_sourcing producer image
uses: docker/build-push-action@v5
with:
context: ./event_sourcing/producer
file: ./messaging/producer/Dockerfile
context: ./messaging/event_sourcing/producer
file: .messaging/event_sourcing/producer/Dockerfile
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/microservices-lab:messaging.producer
tags: ${{ secrets.DOCKER_USERNAME }}/microservices-lab:messaging.event_sourcing.producer

0 comments on commit 2468b4d

Please sign in to comment.