Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 5 additions & 3 deletions .github/workflows/build-and-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ jobs:
name: Build and publish app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
Comment thread
bart-vmware marked this conversation as resolved.
with:
persist-credentials: false

- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.0.*
Expand All @@ -46,7 +48,7 @@ jobs:
run: dotnet publish src/Steeltoe.io --configuration Release --no-build --output ${{ env.DOTNET_ROOT }}/mainsite

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: Steeltoe.io
path: ${{ env.DOTNET_ROOT }}/mainsite
Expand Down
23 changes: 23 additions & 0 deletions docs/docs/v4/management/info.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,20 @@ This contributor exposes information from the `git.properties` Spring Boot file,
> [!TIP]
> For an example of how to use this contributor within MSBuild using [GitInfo](https://github.com/devlooped/GitInfo), see the [Steeltoe Management sample](https://github.com/SteeltoeOSS/Samples/tree/4.x/Management/src).

### Runtime info

This contributor, added in Steeltoe 4.1.0, exposes information about the environment in which the application is running. It includes:

| Property | Description |
| --- | --- |
| `runtimeName` | The name and version of the .NET runtime (for example, ".NET 10.0.0") |
| `runtimeVersion` | The version of the common language runtime |
| `runtimeIdentifier` | The runtime identifier (RID) of the platform (for example, "linux-x64", "win-x64") |
| `processArchitecture` | The process architecture (for example, "X64", "Arm64") |
| `osArchitecture` | The operating system architecture |
| `osDescription` | A description of the operating system |
| `osVersion` | The operating system version |

## Sample Output

The response is always returned as JSON:
Expand Down Expand Up @@ -119,6 +133,15 @@ The response is always returned as JSON:
},
"build": {
"version": "1.0.0.0"
},
"runtime": {
"runtimeName": ".NET 10.0.0",
"runtimeVersion": "10.0.0",
"runtimeIdentifier": "linux-x64",
"processArchitecture": "X64",
"osArchitecture": "X64",
"osDescription": "Ubuntu 22.04.3 LTS",
"osVersion": "Unix 5.15.0.88"
}
}
```
Expand Down