Simulates a microservice repository using trunk development where features are added using Pull Requests.
- Build Pull Request – runs automatically when PRs are opened are pushed to the
main
branch - Build and Push – runs automatically when commits are pushed to
main
(i.e. when a PR is merged) and will...- Builds the project,
- Builds and pushes a docker image to
ghcr.io
, - Using the docker image tag, triggers the
update-image-tag.yaml
workflow on thejon-ruckwood/devoxx-2022-infrastructure
repository to deploy it.
Build
mvn verify
Package
docker build . -t devoxx-2022-service:latest
Run
docker run --rm -p 7000:7000 devoxx-2022-service:latest
Invoke
curl http://localhost:7000/ping