Skip to content

Commit

Permalink
feat: Migrate monolith to .NET 7 (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkerkhove authored May 12, 2023
1 parent 16eaaba commit 2a78219
Show file tree
Hide file tree
Showing 69 changed files with 496 additions and 17,623 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/contoso-monolith-api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Ship Monolith API to Azure Web App
on:
push:
branches:
- main
env:
AZURE_WEBAPP_NAME: contoso-monolith-api
AZURE_WEBAPP_PACKAGE_PATH: Demo.Monolith.API\publish
CONFIGURATION: Release
DOTNET_CORE_VERSION: 7.x
WORKING_DIRECTORY: src/monolith/Demo.Monolith.API
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_CORE_VERSION }}
- name: Restore
run: dotnet restore "${{ env.WORKING_DIRECTORY }}"
- name: Build
run: dotnet build "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-restore
- name: Test
run: dotnet test "${{ env.WORKING_DIRECTORY }}" --no-build
- name: Publish
run: dotnet publish "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-build --output "${{ env.AZURE_WEBAPP_PACKAGE_PATH }}"
- name: Publish Artifacts
uses: actions/upload-artifact@v3
with:
name: webapp
path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
deploy:
runs-on: windows-latest
needs: build
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v3
with:
name: webapp
path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
- name: Deploy to Azure WebApp
uses: azure/webapps-deploy@v2
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.monolith-publish-profile }}
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Microservices with Azure API Management
Codito, a fictuous company, provides industry-leading APIs to their customers for purchasing Microsoft Products.
Contoso, a fictuous company, provides industry-leading APIs to their customers for purchasing Microsoft Products.

Learn about their journey where they decompose a monolith into multiple smaller microservices and how they've migrated without downtime by managing API traffic with Azure API Management.

- [Meet Codito & Why they are transitioning to microservices](./docs/meet-codito.md)
- [Meet Contoso & Why they are transitioning to microservices](./docs/meet-contoso.md)
- [Migrating to Azure Web App for Containers](./docs/migrating-to-web-app-for-containers.md)
- [Migrating to Azure Kubernetes Service](./docs/migrating-to-kubernetes.md)
- [Codito Tomorrow](./docs/codito-tomorrow.md)
- [Contoso Tomorrow](./docs/contoso-tomorrow.md)

Curious? [Run it yourself](/deploy) and give it a try!

![Codito](.//media/codito.jpg)
![](./media/contoso.jpg)
260 changes: 0 additions & 260 deletions deploy/api-management/dev-portal/404/index.html

This file was deleted.

4 changes: 0 additions & 4 deletions deploy/api-management/dev-portal/Dockerfile

This file was deleted.

14 changes: 0 additions & 14 deletions deploy/api-management/dev-portal/README.md

This file was deleted.

Loading

0 comments on commit 2a78219

Please sign in to comment.