-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Migrate monolith to .NET 7 (#29)
- Loading branch information
1 parent
16eaaba
commit 2a78219
Showing
69 changed files
with
496 additions
and
17,623 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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! | ||
|
||
 | ||
 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.