Skip to content
Draft
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
11 changes: 5 additions & 6 deletions .github/workflows/build-and-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,19 @@ env:
AZURE_WEBAPP_PACKAGE_PATH: '.'
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: true
DOTNET_VERSION: '8.0.x'
DOCFX_SOURCE_BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

jobs:
build:
name: Build and publish app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add the following for improved security?

      with:
        persist-credentials: false


- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
dotnet-version: 10.x

- name: Generate API Browser docs
shell: pwsh
Expand All @@ -44,7 +43,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 All @@ -61,7 +60,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should stick with v4; higher versions are severely broken.

with:
name: Steeltoe.io

Expand Down
2 changes: 2 additions & 0 deletions build/build-metadata.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ function Clone-Source-Build-Metadata

Write-Output "Setting DOCFX_SOURCE_BRANCH_NAME to '$branch'"
$env:DOCFX_SOURCE_BRANCH_NAME = $branch
Write-Output "Setting DOTNET_CLI_VARIABLES_LANG_VERSION to 'latest'"
$env:DOTNET_CLI_VARIABLES_LANG_VERSION = "latest"
Write-Output "Running command: dotnet docfx metadata $apiFile"
dotnet docfx metadata $apiFile
}
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
2 changes: 1 addition & 1 deletion src/Steeltoe.io/Steeltoe.io.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
</Project>
Loading