Adding a second microservice
We’ll use the same process as in previous demos to add a new service to our existing aggregate repository:
- Go to the
Actions
tab of the new repository on GitHub. - Select
Add service module
from the list of available workflows on the left. - Click the
Run workflow ▾
button and enter the service name ashandle-occurrence-filtering-service
:Note: Service names must be lowercase. Only alphanumerics and dashes are supported.
ProTip: End your service names with
-service
to make it clear the module contains a microservice. - Click the Run workflow button below the service name.
This will kick off a workflow that adds the new module, containing the boilerplate code for a new service, though the page may need refreshing to view it.
ProTip: This workflow run will commit the new service’s code directly to the main
branch.
This is incompatible with GitHub branch protect rules .
See the Aggregate template’s docs
for alternatives compatible with branch protection.
Wait for the workflow to complete and pull down the changes to your local machine by running:
git pull