Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 30 additions & 7 deletions .github/workflows/build_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,41 @@ jobs:

strategy:
matrix:
service: [
"services/flights",
"services/aircraft",
"services/search",
"services/authentication",
"services/gateway"
]
include:
- service: services/flights
uses_buf: true
- service: services/aircraft
uses_buf: true
needs_app_file: true
- service: services/search
needs_app_file: true
uses_buf: false
- service: services/authentication
uses_buf: false
- service: services/gateway
uses_buf: false

steps:
# Checkout code
- name: Checkout repository
uses: actions/checkout@v4

# Setup the service dependencies
- name: Install buf
if: matrix.uses_buf
uses: bufbuild/buf-setup-action@v1.50.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Build proto files
if: matrix.uses_buf
run: buf generate --template buf.gen.yaml

- name: Create application file
if: matrix.needs_app_file
run: cp ${{ matrix.service }}/src/main/resources/prod-application.example.yml ${{ matrix.service }}/src/main/resources/application.yml

# Build and push the image to GitHub Container Registry
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
Expand Down
Loading