Skip to content

release 0.5.1 - Update dependencies #522

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

Merged
merged 2 commits into from
Mar 25, 2025
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: 7 additions & 1 deletion .github/.gitversion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,29 @@
# See the License for the specific language governing permissions and
# limitations under the License.

workflow: GitHubFlow/v1
assembly-versioning-scheme: MajorMinorPatchTag
assembly-file-versioning-scheme: MajorMinorPatchTag
mode: ContinuousDelivery
branches:
main:
label: ''
regex: ^main$
release:
label: rc
regex: ^releases?[/-](?<BranchName>.+)
develop:
label: beta
increment: Patch
regex: ^develop$
feature:
label: alpha.{BranchName}
regex: ^features?[/-](?<BranchName>.+)
pull-request:
label: pr
increment: Patch
regex: ^(pull|pull\-requests|pr)[/-]

ignore:
sha: []
merge-message-formats: {}
next-version: 0.3.17
105 changes: 51 additions & 54 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,27 @@ jobs:

outputs:
semVer: ${{ steps.gitversion.outputs.semVer }}
preReleaseLabel: ${{ steps.gitversion.outputs.preReleaseLabel }}
majorMinorPatch: ${{ steps.gitversion.outputs.majorMinorPatch }}
preReleaseLabel: ${{ steps.gitversion.outputs.PreReleaseLabel }}
majorMinorPatch: ${{ steps.gitversion.outputs.MajorMinorPatch }}
nuGetVersionV2: ${{ steps.gitversion.outputs.MajorMinorPatch }}

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"

# - name: Install GitVersion
# run: dotnet tool install --global GitVersion.Tool

- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
- name: Setup GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '6.x'
versionSpec: '6.0.x'

- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v2.0.1
uses: gittools/actions/gitversion/execute@v3.1.11
with:
useConfigFile: true
updateAssemblyInfo: true
Expand All @@ -71,7 +68,7 @@ jobs:
run: cat src/AssemblyInfo.cs

- name: Upload AssemblyInfo
uses: actions/upload-artifact@v3.1.2
uses: actions/upload-artifact@v4.6.2
if: always()
with:
name: assembly-info
Expand All @@ -91,20 +88,20 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"

- name: Enable NuGet cache
uses: actions/cache@v3.3.2
uses: actions/cache@v4.2.3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: csharp

Expand All @@ -117,7 +114,7 @@ jobs:
working-directory: ./src

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3

analyze:
runs-on: ubuntu-latest
Expand All @@ -132,7 +129,7 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"

Expand All @@ -146,7 +143,7 @@ jobs:
cache: yes

- name: Enable NuGet cache
uses: actions/cache@v3.3.2
uses: actions/cache@v4.2.3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
Expand Down Expand Up @@ -189,17 +186,17 @@ jobs:
- 27017:27017
steps:
- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: '17'

- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"

- name: Enable NuGet cache
uses: actions/cache@v3.3.2
uses: actions/cache@v4.2.3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
Expand Down Expand Up @@ -273,12 +270,12 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"

- name: Enable NuGet cache
uses: actions/cache@v3.3.2
uses: actions/cache@v4.2.3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
Expand All @@ -300,10 +297,10 @@ jobs:
popd

- name: Upload Integration Test Results
uses: actions/upload-artifact@v3.1.2
uses: actions/upload-artifact@v4.6.2
if: always()
with:
name: integration-${{ matrix.feature }}
name: integration-${{ matrix.feature }}-${{ matrix.database }}
path: |
${{ github.workspace }}/LivingDoc.html
${{ github.workspace }}/services.log
Expand All @@ -316,8 +313,8 @@ jobs:
env:
NUGETVER: ${{ needs.calc-version.outputs.nuGetVersionV2 }}
SEMVER: ${{ needs.calc-version.outputs.semVer }}
PRERELEASELABEL: ${{ needs.calc-version.outputs.preReleaseLabel }}
MAJORMINORPATCH: ${{ needs.calc-version.outputs.majorMinorPatch }}
PRERELEASELABEL: ${{ needs.calc-version.outputs.PreReleaseLabel }}
MAJORMINORPATCH: ${{ needs.calc-version.outputs.MajorMinorPatch }}
strategy:
matrix:
os: [ubuntu-latest]
Expand All @@ -338,12 +335,12 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"

- name: Enable NuGet cache
uses: actions/cache@v3.3.2
uses: actions/cache@v4.2.3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
Expand All @@ -352,7 +349,7 @@ jobs:

- name: Download AssemblyInfo.cs
id: download
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: assembly-info
path: src/
Expand Down Expand Up @@ -389,9 +386,9 @@ jobs:
dir -r ~/release

- name: Upload CLI
uses: actions/upload-artifact@v3.1.2
uses: actions/upload-artifact@v4.6.2
with:
name: artifacts
name: artifacts-cli
path: ~/release
retention-days: 7

Expand All @@ -405,7 +402,7 @@ jobs:

- name: Upload Nuget
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v3.1.2
uses: actions/upload-artifact@v4.6.2
with:
name: nuget
path: ~/nupkg
Expand Down Expand Up @@ -484,18 +481,18 @@ jobs:
runs-on: windows-latest
needs: [calc-version]
env:
SEMVER: ${{ needs.calc-version.outputs.semVer }}
SEMVER: ${{ needs.calc-version.outputs.SemVer }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"

- name: Enable NuGet cache
uses: actions/cache@v3.3.2
uses: actions/cache@v4.2.3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
Expand Down Expand Up @@ -532,9 +529,9 @@ jobs:
Get-ChildItem ~\release -Recurse

- name: Upload docs
uses: actions/upload-artifact@v3.1.2
uses: actions/upload-artifact@v4.6.2
with:
name: artifacts
name: artifacts-docs
path: ~/release
retention-days: 7

Expand All @@ -544,7 +541,7 @@ jobs:
needs: [build, unit-test, integration-test]
if: ${{ ! ( github.event.inputs.nuget ) && ! ( contains(github.ref, 'refs/heads/main') ) }}
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
id: download

- name: List artifacts
Expand All @@ -553,7 +550,7 @@ jobs:
- name: Install grp
run: dotnet tool install gpr -g

- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v4
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
Expand All @@ -568,16 +565,16 @@ jobs:
runs-on: ubuntu-latest
needs: [calc-version, unit-test, docs, integration-test, analyze]
env:
SEMVER: ${{ needs.calc-version.outputs.semVer }}
PRERELEASELABEL: ${{ needs.calc-version.outputs.preReleaseLabel }}
MAJORMINORPATCH: ${{ needs.calc-version.outputs.majorMinorPatch }}
SEMVER: ${{ needs.calc-version.outputs.SemVer }}
PRERELEASELABEL: ${{ needs.calc-version.outputs.PreReleaseLabel }}
MAJORMINORPATCH: ${{ needs.calc-version.outputs.MajorMinorPatch }}

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
id: download

- name: List artifacts
Expand All @@ -586,7 +583,7 @@ jobs:
- name: Install grp
run: dotnet tool install gpr -g

- uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v4
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
Expand All @@ -607,34 +604,34 @@ jobs:
msg: ${{ github.repository }}

- name: Install GitReleaseManager
uses: gittools/actions/gitreleasemanager/setup@v0.10.2
uses: gittools/actions/gitreleasemanager/setup@v3.1.11
with:
versionSpec: "0.13.x"
versionSpec: '0.18.x'

- name: Create release with GitReleaseManager
uses: gittools/actions/gitreleasemanager/create@v0.10.2
uses: gittools/actions/gitreleasemanager/create@v3.1.11
with:
token: ${{ secrets.GITHUB_TOKEN }}
owner: ${{ steps.repo.outputs._0 }}
repository: ${{ steps.repo.outputs._1 }}
milestone: ${{ env.MAJORMINORPATCH }}
name: "Release v${{ env.MAJORMINORPATCH }}"
assets: |
artifacts/mig-cli-${{ env.SEMVER }}-linux-x64.zip
artifacts/mig-cli-${{ env.SEMVER }}-win-x64.zip
artifacts/mig-docs-${{ env.SEMVER }}.zip
artifacts-cli/mig-cli-${{ env.SEMVER }}-linux-x64.zip
artifacts-cli/mig-cli-${{ env.SEMVER }}-win-x64.zip
artifacts-docs/mig-docs-${{ env.SEMVER }}.zip

- name: Publish release with GitReleaseManager
uses: gittools/actions/gitreleasemanager/publish@v0.10.2
uses: gittools/actions/gitreleasemanager/publish@v3.1.11
if: ${{ contains(github.ref, 'refs/heads/main') }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
owner: ${{ steps.repo.outputs._0 }}
repository: ${{ steps.repo.outputs._1 }}
tagName: ${{ env.MAJORMINORPATCH }}
milestone: ${{ env.MAJORMINORPATCH }}

- name: Close release with GitReleaseManager
uses: gittools/actions/gitreleasemanager/close@v0.10.2
uses: gittools/actions/gitreleasemanager/close@v3.1.11
if: ${{ contains(github.ref, 'refs/heads/main') }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -646,7 +643,7 @@ jobs:
if: ${{ contains(github.ref, 'refs/heads/main') }}
run: |
mkdir userguide
unzip artifacts/mig-docs-${{ env.SEMVER }}.zip -d userguide/
unzip artifacts-docs/mig-docs-${{ env.SEMVER }}.zip -d userguide/
ls -lR userguide/

- name: Deploy Docs
Expand Down
3 changes: 2 additions & 1 deletion .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ header:
license:
spdx-id: Apache-2.0
copyright-owner: MONAI Consortium

copyright-year: 2022-2025

paths-ignore:
- 'LICENSE'
- '.github/**/*.md'
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy as build
FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS build

# Install the tools
RUN dotnet tool install --tool-path /tools dotnet-trace
Expand All @@ -36,7 +36,7 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends curl \
&& apt-get install -y libc6-dev=2.35-0ubuntu3.8 \
&& apt-get install -y libc6-dev=2.35-0ubuntu3.9 \
&& rm -rf /var/lib/apt/lists # this is a workaround for Mongo encryption library

WORKDIR /opt/monai/ig
Expand Down
Loading
Loading