Skip to content

Commit 9368131

Browse files
authoredJul 22, 2022
Updates from runthrough (MicrosoftDocs#7)
* Create main.yml * Rename main.yml to build.yml * Update CouponController.cs * Update CouponControllerTests.cs * Create deploy.yml * Update Chart.yaml * Update deploy.yml * Update Chart.yaml * Update deploy.yml * Update Chart.yaml * Update Chart.yaml * Update Chart.yaml * Update Startup.cs * Update Chart.yaml * Update deploy.yml * Update Chart.yaml * Update deploy.yml * Update Chart.yaml * runthrough * Remove actions * revert coupon chart * revert coupon changes
1 parent 209cde6 commit 9368131

10 files changed

+12
-29
lines changed
 

‎README.md

+2-25
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
1-
# eShop-Learn - DevOps
1+
# Deploy a cloud-native ASP.NET Core microservice with GitHub Actions
22

3-
Implement a GitHub Actions pipeline to deploy to AKS from a GitHub repo.
4-
5-
In this module you will:
6-
7-
- Deploy an existing ASP.NET Core microservices application to AKS.
8-
- Review some key DevOps concepts.
9-
- Create a GitHub Action to deploy changes to the AKS cluster.
10-
- Implement a minor change to the SPA and verify it gets deployed to your AKS cluster.
11-
12-
## Prerequisites
13-
14-
- Familiarity with DevOps concepts
15-
- Access to an Azure subscription with **Owner** privilege
16-
17-
## Content
18-
19-
- [Introduction](doc/introduction.md)
20-
- [Exercise - Set up the environment](doc/environment-setup.md)
21-
- [Review key DevOps concepts](doc/review-devops-concepts.md)
22-
- [Exercise - Implement a GitHub action to deploy to AKS](doc/implement-github-action-deploy-to-aks.md)
23-
- [Knowledge check](doc/knowledge-check.md)
24-
- [Summary](doc/summary.md)
25-
26-
| [START >](doc/introduction.md) |
3+
Welcome! This is the starter code repository for [this Microsoft Learn module](https://docs.microsoft.com/learn/modules/microservices-devops-aspnet-core/). We strongly suggest you follow along with the module for the best results.

‎deploy/k8s/azure-cli-check.sh

100644100755
File mode changed.

‎deploy/k8s/build-to-acr.sh

100644100755
File mode changed.

‎deploy/k8s/cleanup-service-principal.sh

100644100755
+1-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
#!/bin/bash
22

33
# Color theming
4-
if [ -f ~/clouddrive/aspnet-learn/deploy/k8s/theme.sh ]
5-
then
6-
. <(cat ~/clouddrive/aspnet-learn/deploy/k8s/theme.sh)
7-
fi
4+
. <(cat ./theme.sh)
85

96
echo "Deleting service principal(s)..."
107

‎deploy/k8s/create-acr.sh

100644100755
+6
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,9 @@ echo "Created Azure Container Registry \"$eshopAcrName\" in resource group \"$es
140140

141141
mv -f create-acr-exports.txt ../../
142142
mv -f create-idtag-exports.txt ../../
143+
144+
echo "REGISTRY_LOGIN_SERVER: ${headingStyle}$eshopRegistry${defaultTextStyle}" >> ../../config.txt
145+
echo "REGISTRY_PASSWORD: ${headingStyle}$eshopAcrPassword${defaultTextStyle}" >> ../../config.txt
146+
echo "REGISTRY_USERNAME: ${headingStyle}$eshopAcrUser${defaultTextStyle}" >> ../../config.txt
147+
echo "${newline}" >> ../../config.txt
148+

‎deploy/k8s/create-aks.sh

100644100755
+3
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,6 @@ echo export ESHOP_AKSNODERG=$aksNodeRG >> create-aks-exports.txt
152152
echo export ESHOP_LBIP=$eshopLbIp >> create-aks-exports.txt
153153

154154
mv -f create-aks-exports.txt ../../
155+
156+
echo "${headingStyle}AKS and ACR Configuration values${defaultTextStyle}${newline}" > ../../config.txt
157+
echo "IP_ADDRESS: ${headingStyle}$eshopLbIp${defaultTextStyle}" >> ../../config.txt

‎deploy/k8s/deploy-application.sh

100644100755
File mode changed.

‎deploy/k8s/deploy-secrets.sh

100644100755
File mode changed.

‎deploy/k8s/quickstart.sh

100644100755
File mode changed.

‎deploy/k8s/theme.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)
Please sign in to comment.