jon-ruckwood / devoxx-2022-service

Demonstrating workflows for a repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

devoxx-2022-service

Simulates a microservice repository using trunk development where features are added using Pull Requests.

Workflows

  • 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 the jon-ruckwood/devoxx-2022-infrastructure repository to deploy it.

Usage

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

About

Demonstrating workflows for a repository


Languages

Language:Java 83.9%Language:Dockerfile 16.1%