Skip to content

Commit d6da175

Browse files
committed
refactor: use renovate and nuget + update pipeline
BREAKING CHANGE: update to dotnet 9
1 parent fa69b0d commit d6da175

File tree

154 files changed

+69075
-4951
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+69075
-4951
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<Project>
2+
<PropertyGroup>
3+
<LangVersion>latest</LangVersion>
4+
<TargetFramework>net9.0</TargetFramework>
5+
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
6+
7+
<RuntimeIdentifier>$(MyRuntimeIdentifier)</RuntimeIdentifier>
8+
<RuntimeIdentifiers>win-x64;linux-x64;linux-arm64</RuntimeIdentifiers>
9+
<RuntimeFrameworkVersion>9.0.3</RuntimeFrameworkVersion>
10+
<DisableImplicitFrameworkReferences>false</DisableImplicitFrameworkReferences>
11+
12+
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
13+
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
14+
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
15+
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
16+
17+
<PublishReadyToRun>true</PublishReadyToRun>
18+
<OutputType>Exe</OutputType>
19+
20+
<IsTestProject>false</IsTestProject>
21+
</PropertyGroup>
22+
23+
<PropertyGroup>
24+
<Nullable>enable</Nullable>
25+
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
26+
<RunAnalyzersDuringLiveAnalysis>true</RunAnalyzersDuringLiveAnalysis>
27+
</PropertyGroup>
28+
29+
<ItemGroup>
30+
<Content Remove="init.sh;appsettings.json;appsettings.*.json;Dockerfile"/>
31+
<None Include="init.sh;appsettings.json;appsettings.*.json;Dockerfile">
32+
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
33+
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
34+
</None>
35+
</ItemGroup>
36+
37+
<PropertyGroup>
38+
<!-- Disable Paket restore under NCrunch build -->
39+
<PaketRestoreDisabled Condition="'$(NCrunch)' == '1'">True</PaketRestoreDisabled>
40+
</PropertyGroup>
41+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<Project>
2+
<PropertyGroup>
3+
<LangVersion>latest</LangVersion>
4+
<TargetFramework>net9.0</TargetFramework>
5+
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
6+
7+
<RuntimeIdentifier>$(MyRuntimeIdentifier)</RuntimeIdentifier>
8+
<RuntimeIdentifiers>win-x64;linux-x64;linux-arm64</RuntimeIdentifiers>
9+
<RuntimeFrameworkVersion>9.0.3</RuntimeFrameworkVersion>
10+
<DisableImplicitFrameworkReferences>false</DisableImplicitFrameworkReferences>
11+
12+
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
13+
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
14+
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
15+
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
16+
17+
<OutputType>Library</OutputType>
18+
19+
<IsTestProject>false</IsTestProject>
20+
</PropertyGroup>
21+
22+
<PropertyGroup>
23+
<Nullable>enable</Nullable>
24+
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
25+
<RunAnalyzersDuringLiveAnalysis>true</RunAnalyzersDuringLiveAnalysis>
26+
</PropertyGroup>
27+
28+
<PropertyGroup>
29+
<!-- Disable Paket restore under NCrunch build -->
30+
<PaketRestoreDisabled Condition="'$(NCrunch)' == '1'">True</PaketRestoreDisabled>
31+
</PropertyGroup>
32+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<Project>
2+
<PropertyGroup>
3+
<LangVersion>latest</LangVersion>
4+
<TargetFramework>netstandard2.1</TargetFramework>
5+
6+
<DisableImplicitFrameworkReferences>false</DisableImplicitFrameworkReferences>
7+
8+
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
9+
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
10+
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
11+
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
12+
13+
<OutputType>Library</OutputType>
14+
15+
<IsTestProject>false</IsTestProject>
16+
</PropertyGroup>
17+
18+
<PropertyGroup>
19+
<Nullable>enable</Nullable>
20+
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
21+
<RunAnalyzersDuringLiveAnalysis>true</RunAnalyzersDuringLiveAnalysis>
22+
</PropertyGroup>
23+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<Project>
2+
<PropertyGroup>
3+
<LangVersion>latest</LangVersion>
4+
<TargetFramework>net9.0</TargetFramework>
5+
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
6+
7+
<RuntimeIdentifier>$(MyRuntimeIdentifier)</RuntimeIdentifier>
8+
<RuntimeIdentifiers>win-x64;linux-x64</RuntimeIdentifiers>
9+
<RuntimeFrameworkVersion>9.0.3</RuntimeFrameworkVersion>
10+
<DisableImplicitFrameworkReferences>false</DisableImplicitFrameworkReferences>
11+
12+
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
13+
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
14+
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
15+
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
16+
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
17+
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
18+
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
19+
20+
<OutputType>Exe</OutputType>
21+
22+
<IsPackable>false</IsPackable>
23+
<IsTestProject>true</IsTestProject>
24+
<EnableDefaultContentItems>false</EnableDefaultContentItems>
25+
</PropertyGroup>
26+
27+
<PropertyGroup>
28+
<Nullable>enable</Nullable>
29+
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
30+
<RunAnalyzersDuringLiveAnalysis>true</RunAnalyzersDuringLiveAnalysis>
31+
</PropertyGroup>
32+
33+
<PropertyGroup>
34+
<!-- Disable Paket restore under NCrunch build -->
35+
<PaketRestoreDisabled Condition="'$(NCrunch)' == '1'">True</PaketRestoreDisabled>
36+
</PropertyGroup>
37+
38+
<!-- https://stackoverflow.com/questions/18614342/what-is-service-include-in-a-csproj-file-for -->
39+
<ItemGroup>
40+
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
41+
</ItemGroup>
42+
</Project>

.config/dotnet-tools.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
"version": 1,
33
"isRoot": true,
44
"tools": {
5-
"paket": {
6-
"version": "8.0.3",
5+
"amazon.lambda.tools": {
6+
"version": "5.12.4",
77
"commands": [
8-
"paket"
9-
]
8+
"dotnet-lambda"
9+
],
10+
"rollForward": false
1011
},
1112
"dotnet-ef": {
12-
"version": "8.0.3",
13+
"version": "9.0.4",
1314
"commands": [
1415
"dotnet-ef"
1516
]

.dockerignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
**/.dockerignore
2+
**/.env
3+
**/.git
4+
**/.gitignore
5+
**/.project
6+
**/.settings
7+
**/.toolstarget
8+
**/.vs
9+
**/.vscode
10+
**/.idea
11+
**/*.*proj.user
12+
**/*.dbmdl
13+
**/*.jfm
14+
**/azds.yaml
15+
**/bin
16+
**/charts
17+
**/docker-compose*
18+
**/Dockerfile*
19+
**/node_modules
20+
**/npm-debug.log
21+
**/obj
22+
**/secrets.dev.yaml
23+
**/values.dev.yaml
24+
LICENSE
25+
README.md

.github/dependabot.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,16 @@ jobs:
2424
java-version: 17
2525
distribution: 'temurin'
2626

27-
- name: Cache Paket
28-
uses: actions/cache@v4
29-
env:
30-
cache-name: cache-paket
31-
with:
32-
path: packages
33-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('paket.lock') }}
34-
restore-keys: |
35-
${{ runner.os }}-build-${{ env.cache-name }}-
36-
3727
- name: Parse repository name
3828
run: echo REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}' | sed -e "s/:refs//") >> $GITHUB_ENV
3929
shell: bash
4030

4131
- name: Setup .NET Core
4232
uses: actions/setup-dotnet@v4
4333
with:
44-
dotnet-version: ${{ vars.VBR_DOTNET_VERSION_8 }}
34+
dotnet-version: ${{ vars.VBR_DOTNET_VERSION_9 }}
35+
cache: true
36+
cache-dependency-path: "**/packages.lock.json"
4537

4638
- name: .NET version
4739
shell: bash
@@ -50,9 +42,9 @@ jobs:
5042
- name: Restore packages
5143
shell: bash
5244
run: |
45+
./pre-restore.sh
5346
dotnet tool restore
54-
dotnet paket restore
55-
dotnet restore
47+
dotnet restore --locked-mode
5648
5749
- name: Cache SonarCloud packages
5850
uses: actions/cache@v4

.github/workflows/deploy_prd.yml

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,14 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- name: Parse repository name
21-
run: echo REPOSITORY_NAME=$(echo ""$GITHUB_REPOSITORY"" | awk -F / '{print $2}' | sed -e ""s/:refs//"") >> $GITHUB_ENV
22-
shell: bash
23-
2420
- name: Notify deployment started
25-
uses: slackapi/slack-github-action@v1.26.0
21+
uses: slackapi/slack-github-action@v2
2622
with:
27-
channel-id: '#team-dinosaur-dev'
28-
slack-message: Deployment of building-registry to production has started
29-
env:
30-
SLACK_BOT_TOKEN: ${{ secrets.VBR_SLACK_BOT_TOKEN }}
31-
SLACK_CHANNEL: ${{ secrets.VBR_NOTIFIER_CHANNEL_NAME }}
32-
REPOSITORY_NAME: ${{ env.REPOSITORY_NAME }}
23+
method: chat.postMessage
24+
token: ${{ secrets.VBR_SLACK_BOT_TOKEN }}
25+
payload: |
26+
channel: '#team-dinosaur-dev'
27+
text: 'Deployment of building-registry to production has started'
3328
3429
deploy_services_to_production:
3530
if: github.repository_owner == 'Informatievlaanderen'
@@ -120,7 +115,7 @@ jobs:
120115

121116
steps:
122117
- name: CD Lambda(s) Configure credentials
123-
uses: aws-actions/configure-aws-credentials@v4.0.2
118+
uses: aws-actions/configure-aws-credentials@v4.1.0
124119
with:
125120
aws-access-key-id: ${{ secrets.VBR_AWS_ACCESS_KEY_ID_DEVOPS }}
126121
aws-secret-access-key: ${{ secrets.VBR_AWS_SECRET_ACCESS_KEY_DEVOPS }}
@@ -144,16 +139,11 @@ jobs:
144139
runs-on: ubuntu-latest
145140

146141
steps:
147-
- name: Parse repository name
148-
run: echo REPOSITORY_NAME=$(echo ""$GITHUB_REPOSITORY"" | awk -F / '{print $2}' | sed -e ""s/:refs//"") >> $GITHUB_ENV
149-
shell: bash
150-
151142
- name: Notify deployment finished
152-
uses: slackapi/slack-github-action@v1.26.0
143+
uses: slackapi/slack-github-action@v2
153144
with:
154-
channel-id: '#team-dinosaur-dev'
155-
slack-message: Deployment of building-registry to production has finished
156-
env:
157-
SLACK_BOT_TOKEN: ${{ secrets.VBR_SLACK_BOT_TOKEN }}
158-
SLACK_CHANNEL: ${{ secrets.VBR_NOTIFIER_CHANNEL_NAME }}
159-
REPOSITORY_NAME: ${{ env.REPOSITORY_NAME }}
145+
method: chat.postMessage
146+
token: ${{ secrets.VBR_SLACK_BOT_TOKEN }}
147+
payload: |
148+
channel: '#team-dinosaur-dev'
149+
text: 'Deployment of building-registry to production has finished'

0 commit comments

Comments
 (0)