Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Spring Actuator Endpoints #46

Merged
merged 2 commits into from
May 26, 2024
Merged

Add Spring Actuator Endpoints #46

merged 2 commits into from
May 26, 2024

Conversation

chrisvrose
Copy link
Member

@chrisvrose chrisvrose commented May 26, 2024

Closes #45 .

This exposes one endpoints, that shows the build information, and the the (last) commit id which it was built from.

health

API: GET /actuator/info

Example response:

{
  "git": {
    "branch": "build-info",
    "commit": {
      "id": "86ae0ea",
      "time": "2024-05-26T05:40:12Z"
    }
  },
  "build": {
    "artifact": "gatekeeper",
    "name": "gatekeeper",
    "time": "2024-05-26T05:41:42.583Z",
    "version": "0.1.2-SNAPSHOT",
    "group": "org.ieee-rvce"
  }
}

How does this help?

Github shows a commit history, with a commit ID for each change you make:
Screenshot_2024-05-26_11-04-30

If you hit this endpoint and the ID for your change is shown here, then you can be sure your version is deployed.

Extra

The version gradle.properties is also shown, along with build time, for extra information.

@chrisvrose chrisvrose merged commit 6b9df7f into master May 26, 2024
3 checks passed
@chrisvrose chrisvrose deleted the build-info branch May 26, 2024 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build version
3 participants