Skip to content

Commit

Permalink
Add build-jar dependency to workflow tasks
Browse files Browse the repository at this point in the history
The `build-jar` step has been added as a requirement to all image push tasks in the workflow. This change ensures that the jar file is fully built before these tasks attempt to push their respective images.
  • Loading branch information
nawaphonOHM committed Apr 27, 2024
1 parent 7eb280d commit 1e6ab66
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ jobs:
./circuit_breaker/real_service/Dockerfile
push-image-private_table_per_service-customer_service:
needs: build-jar
runs-on: ubuntu-latest
steps:
- name: Download private_table_per_service@customer_service
Expand All @@ -190,6 +191,7 @@ jobs:
tags: ${{ secrets.DOCKER_USERNAME }}/microservices-lab:private-table-per-service.customer-service

push-image-private_table_per_service-order-service:
needs: build-jar
runs-on: ubuntu-latest
steps:
- name: Download private_table_per_service@order-service
Expand All @@ -215,6 +217,7 @@ jobs:
tags: ${{ secrets.DOCKER_USERNAME }}/microservices-lab:private-table-per-service.order-service

push-image-shared_databases-customer_service:
needs: build-jar
runs-on: ubuntu-latest
steps:
- name: Download shared_database@customer_service
Expand All @@ -240,6 +243,7 @@ jobs:
tags: ${{ secrets.DOCKER_USERNAME }}/microservices-lab:shared-database.customer-service

push-image-shared_databases-order_service:
needs: build-jar
runs-on: ubuntu-latest
steps:
- name: Download shared_database@order_service
Expand All @@ -265,6 +269,7 @@ jobs:
tags: ${{ secrets.DOCKER_USERNAME }}/microservices-lab:shared-database.order-service

push-image-shared_databases-database:
needs: build-jar
runs-on: ubuntu-latest
steps:
- name: Download shared_database@db
Expand All @@ -290,6 +295,7 @@ jobs:
tags: ${{ secrets.DOCKER_USERNAME }}/microservices-lab:shared_database

push-image-rest-sender:
needs: build-jar
runs-on: ubuntu-latest
steps:
- name: Download rest@sender
Expand All @@ -315,6 +321,7 @@ jobs:
tags: ${{ secrets.DOCKER_USERNAME }}/microservices-lab:messaging.rest.sender

push-image-rest-receiver:
needs: build-jar
runs-on: ubuntu-latest
steps:
- name: Download rest@receiver
Expand All @@ -340,6 +347,7 @@ jobs:
tags: ${{ secrets.DOCKER_USERNAME }}/microservices-lab:messaging.rest.receiver

push-image-event_sourcing-consumer:
needs: build-jar
runs-on: ubuntu-latest
steps:
- name: Download event_sourcing@consumer
Expand All @@ -365,6 +373,7 @@ jobs:
tags: ${{ secrets.DOCKER_USERNAME }}/microservices-lab:messaging.consumer

push-image-event_sourcing-producer:
needs: build-jar
runs-on: ubuntu-latest
steps:
- name: Download event_sourcing@producer
Expand All @@ -390,6 +399,7 @@ jobs:
tags: ${{ secrets.DOCKER_USERNAME }}/microservices-lab:messaging.event_sourcing.producer

push-image-graphql-gateway:
needs: build-jar
runs-on: ubuntu-latest
steps:
- name: Download graphql@gateway
Expand All @@ -415,6 +425,7 @@ jobs:
tags: ${{ secrets.DOCKER_USERNAME }}/microservices-lab:messaging.graphql.gateway

push-image-circuit_breaker-proxy:
needs: build-jar
runs-on: ubuntu-latest
steps:
- name: Download circuit_breaker@proxy
Expand All @@ -440,6 +451,7 @@ jobs:
tags: ${{ secrets.DOCKER_USERNAME }}/microservices-lab:circuit-breaker.proxy

push-image-circuit_breaker-real_service:
needs: build-jar
runs-on: ubuntu-latest
steps:
- name: Download circuit_breaker@real_service
Expand Down

0 comments on commit 1e6ab66

Please sign in to comment.