Skip to content

Commit a73e042

Browse files
committed
Add Azure deployment workflows for dev, test, and prod environments
1 parent 6d7e464 commit a73e042

File tree

2 files changed

+63
-2
lines changed

2 files changed

+63
-2
lines changed

.github/workflows/dotnet-deploy-1.yml

Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,65 @@ jobs:
6060
run: docker build -t $registryName/$repositoryName:$tag --build-arg build_version=$tag $dockerFolderPath
6161

6262
- name: Docker Push
63-
run: docker push $registryName/$repositoryName:$tag
63+
run: docker push $registryName/$repositoryName:$tag
64+
65+
deploy-to-dev:
66+
67+
runs-on: ubuntu-latest
68+
needs: dockerBuildPush
69+
environment:
70+
name: dev
71+
url: https://mpplabajep-dev.azurewebsites.net/
72+
73+
steps:
74+
- name: 'Login via Azure CLI'
75+
uses: azure/[email protected]
76+
with:
77+
creds: ${{ secrets.AZURE_CREDENTIALS }}
78+
79+
- uses: azure/webapps-deploy@v2
80+
with:
81+
app-name: 'mpplabajep-dev'
82+
images: mpplabajep.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}}
83+
84+
deploy-to-test:
85+
86+
runs-on: ubuntu-latest
87+
needs: deploy-to-dev
88+
environment:
89+
name: test
90+
url: https://mpplabajep-test.azurewebsites.net/
91+
92+
steps:
93+
- uses: actions/checkout@v3
94+
95+
- name: 'Login via Azure CLI'
96+
uses: azure/[email protected]
97+
with:
98+
creds: ${{ secrets.AZURE_CREDENTIALS }}
99+
100+
- uses: azure/webapps-deploy@v2
101+
with:
102+
app-name: 'mpplabajep-test'
103+
images: mpplabajep.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}}
104+
105+
deploy-to-prod:
106+
107+
runs-on: ubuntu-latest
108+
needs: deploy-to-test
109+
environment:
110+
name: prod
111+
url: https://mpplabajep-prod.azurewebsites.net/
112+
113+
steps:
114+
- uses: actions/checkout@v3
115+
116+
- name: 'Login via Azure CLI'
117+
uses: azure/[email protected]
118+
with:
119+
creds: ${{ secrets.AZURE_CREDENTIALS }}
120+
121+
- uses: azure/webapps-deploy@v2
122+
with:
123+
app-name: 'mpplabajep-prod'
124+
images: mpplabajep.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}}

src/Application/src/RazorPagesTestSample/Pages/Error.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
}
66

77
<h1 class="text-danger">Error.</h1>
8-
<h2 class="text-danger">An error occurred while processing your request.</h2>
8+
<h3 class="text-danger">An error occurred while processing your request.</h3>
99

1010
@if (Model.ShowRequestId)
1111
{

0 commit comments

Comments
 (0)