Skip to content

Commit

Permalink
feat: remove api legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneD committed Aug 22, 2024
1 parent 5c7f096 commit b14c70d
Show file tree
Hide file tree
Showing 28 changed files with 1 addition and 1,788 deletions.
46 changes: 1 addition & 45 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,6 @@ jobs:
echo RELEASE_VERSION=$(cat semver) >> $GITHUB_ENV
shell: bash

build-api-legacy:
name: Build Api Legacy
uses: Informatievlaanderen/build-pipeline/.github/workflows/build-image.yml@main
needs: [ set-release-version ]
if: ${{ (github.repository_owner == 'Informatievlaanderen') && (needs.set-release-version.outputs.version != 'none') }}
with:
registry: ${{ vars.VBR_DEVOPS_DOCKER_REGISTRY }}/postal-registry
image-file: pr-api-legacy-image.tar
image-name: api-legacy
test-project: PostalRegistry.Tests
build-project: PostalRegistry.Api.Legacy
semver: ${{ needs.set-release-version.outputs.version }}
dotnet-version: ${{ vars.VBR_DOTNET_VERSION_8 }}
secrets: inherit

build-api-oslo:
name: Build Api Oslo
uses: Informatievlaanderen/build-pipeline/.github/workflows/build-image.yml@main
Expand Down Expand Up @@ -175,19 +160,6 @@ jobs:
dotnet-version: ${{ vars.VBR_DOTNET_VERSION_8 }}
secrets: inherit

pack-api-legacy:
name: Pack Api Legacy
uses: Informatievlaanderen/build-pipeline/.github/workflows/pack.yml@main
needs: [ set-release-version ]
if: ${{ (github.repository_owner == 'Informatievlaanderen') && (needs.set-release-version.outputs.version != 'none') }}
with:
pack-file: Be.Vlaanderen.Basisregisters.PostalRegistry.Api.Legacy
test-project: PostalRegistry.Tests
build-project: PostalRegistry.Api.Legacy
semver: ${{ needs.set-release-version.outputs.version }}
dotnet-version: ${{ vars.VBR_DOTNET_VERSION_8 }}
secrets: inherit

pack-api-oslo:
name: Pack Api Oslo
uses: Informatievlaanderen/build-pipeline/.github/workflows/pack.yml@main
Expand Down Expand Up @@ -219,10 +191,8 @@ jobs:
name: Semantic Release
runs-on: ubuntu-latest
needs: [ set-release-version,
pack-api-legacy,
pack-api-oslo,
pack-api-extract,
build-api-legacy,
build-api-oslo,
build-api-extract,
build-api-import,
Expand Down Expand Up @@ -284,13 +254,6 @@ jobs:
python -m pip install --upgrade pip
pip install requests markdown argparse
- name: Download NuGet Api Legacy
uses: actions/download-artifact@v4
continue-on-error: false
with:
name: nuget-Be.Vlaanderen.Basisregisters.PostalRegistry.Api.Legacy-${{ needs.set-release-version.outputs.version }}
path: dist/nuget/

- name: Download NuGet Api Oslo
uses: actions/download-artifact@v4
continue-on-error: false
Expand Down Expand Up @@ -347,12 +310,6 @@ jobs:
shell: bash
run: dotnet --info

- name: Download NuGet package api-legacy
uses: actions/download-artifact@v4
with:
name: nuget-Be.Vlaanderen.Basisregisters.PostalRegistry.Api.Legacy-${{ needs.release.outputs.version }}
path: ~/

- name: Download NuGet package api-oslo
uses: actions/download-artifact@v4
with:
Expand All @@ -368,7 +325,6 @@ jobs:
- name: Publish packages to NuGet
shell: bash
run: |
dotnet nuget push ~/Be.Vlaanderen.Basisregisters.PostalRegistry.Api.Legacy.$SEMVER.nupkg --source nuget.org --api-key $NUGET_API_KEY
dotnet nuget push ~/Be.Vlaanderen.Basisregisters.PostalRegistry.Api.Oslo.$SEMVER.nupkg --source nuget.org --api-key $NUGET_API_KEY
dotnet nuget push ~/Be.Vlaanderen.Basisregisters.PostalRegistry.Api.Extract.$SEMVER.nupkg --source nuget.org --api-key $NUGET_API_KEY
env:
Expand Down Expand Up @@ -444,7 +400,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
image: ['api-legacy', 'api-oslo', 'api-import', 'api-extract', 'projections-syndication', 'projector', 'producer', 'producer-snapshot-oslo']
image: ['api-oslo', 'api-import', 'api-extract', 'projections-syndication', 'projector', 'producer', 'producer-snapshot-oslo']
steps:
- name: Configure AWS credentials
uses: aws-actions/[email protected]
Expand Down
7 changes: 0 additions & 7 deletions PostalRegistry.sln
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{A82FA45A-B
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PostalRegistry", "src\PostalRegistry\PostalRegistry.csproj", "{41821826-401B-4907-9E6D-F90DA4D84BA2}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PostalRegistry.Api.Legacy", "src\PostalRegistry.Api.Legacy\PostalRegistry.Api.Legacy.csproj", "{7F47CB53-84F6-4D0D-8380-306E95E1DE56}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PostalRegistry.Api.Import", "src\PostalRegistry.Api.Import\PostalRegistry.Api.Import.csproj", "{8F47CB53-84F6-4D0D-8380-306E95E1DE56}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PostalRegistry.Infrastructure", "src\PostalRegistry.Infrastructure\PostalRegistry.Infrastructure.csproj", "{488B07C6-FEDE-4F8D-A6E2-A7DFED79BBA1}"
Expand Down Expand Up @@ -73,10 +71,6 @@ Global
{41821826-401B-4907-9E6D-F90DA4D84BA2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{41821826-401B-4907-9E6D-F90DA4D84BA2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{41821826-401B-4907-9E6D-F90DA4D84BA2}.Release|Any CPU.Build.0 = Release|Any CPU
{7F47CB53-84F6-4D0D-8380-306E95E1DE56}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7F47CB53-84F6-4D0D-8380-306E95E1DE56}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7F47CB53-84F6-4D0D-8380-306E95E1DE56}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7F47CB53-84F6-4D0D-8380-306E95E1DE56}.Release|Any CPU.Build.0 = Release|Any CPU
{8F47CB53-84F6-4D0D-8380-306E95E1DE56}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8F47CB53-84F6-4D0D-8380-306E95E1DE56}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8F47CB53-84F6-4D0D-8380-306E95E1DE56}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down Expand Up @@ -147,7 +141,6 @@ Global
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{41821826-401B-4907-9E6D-F90DA4D84BA2} = {81BE6CDF-434E-42AB-9CB1-B5E7A26DC317}
{7F47CB53-84F6-4D0D-8380-306E95E1DE56} = {81BE6CDF-434E-42AB-9CB1-B5E7A26DC317}
{8F47CB53-84F6-4D0D-8380-306E95E1DE56} = {81BE6CDF-434E-42AB-9CB1-B5E7A26DC317}
{488B07C6-FEDE-4F8D-A6E2-A7DFED79BBA1} = {81BE6CDF-434E-42AB-9CB1-B5E7A26DC317}
{8F656DE8-12B1-4FFB-8404-16C17558E448} = {A82FA45A-B77F-48AA-8E30-C2928DCAF7EF}
Expand Down
26 changes: 0 additions & 26 deletions src/PostalRegistry.Api.Legacy/Convertors/Language.cs

This file was deleted.

12 changes: 0 additions & 12 deletions src/PostalRegistry.Api.Legacy/Convertors/PostalInformationName.cs

This file was deleted.

This file was deleted.

30 changes: 0 additions & 30 deletions src/PostalRegistry.Api.Legacy/Dockerfile

This file was deleted.

This file was deleted.

This file was deleted.

20 changes: 0 additions & 20 deletions src/PostalRegistry.Api.Legacy/Infrastructure/EmptyController.cs

This file was deleted.

41 changes: 0 additions & 41 deletions src/PostalRegistry.Api.Legacy/Infrastructure/Modules/ApiModule.cs

This file was deleted.

This file was deleted.

30 changes: 0 additions & 30 deletions src/PostalRegistry.Api.Legacy/Infrastructure/Program.cs

This file was deleted.

Loading

0 comments on commit b14c70d

Please sign in to comment.