4
4
name : .NET
5
5
6
6
env :
7
- registryName : {your_registry_name} .azurecr.io
7
+ registryName : jo37jiy66vx2ympnpreg .azurecr.io
8
8
repositoryName : techexcel/dotnetcoreapp
9
9
dockerFolderPath : ./src/Application/src/RazorPagesTestSample
10
10
tag : ${{github.run_number}}
@@ -55,22 +55,22 @@ jobs:
55
55
- uses : actions/checkout@v3
56
56
57
57
- name : Docker Login
58
- # You may pin to the exact commit or the version.
59
- # uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
60
-
61
- with :
62
- # Server address of Docker registry. If not set then will default to Docker Hub
63
- registry : ${{ secrets.ACR_LOGIN_SERVER }}
64
- # Username used to log against the Docker registry
65
- username : ${{ secrets.ACR_USERNAME }}
66
- # Password or personal access token used to log against the Docker registry
67
- password : ${{ secrets.ACR_PASSWORD }}
68
- # Log out from the Docker registry at the end of a job
69
- logout : true
70
-
58
+ # You may pin to the exact commit or the version.
59
+ # uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
60
+
61
+ with :
62
+ # Server address of Docker registry. If not set then will default to Docker Hub
63
+ registry : ${{ secrets.ACR_LOGIN_SERVER }}
64
+ # Username used to log against the Docker registry
65
+ username : ${{ secrets.ACR_USERNAME }}
66
+ # Password or personal access token used to log against the Docker registry
67
+ password : ${{ secrets.ACR_PASSWORD }}
68
+ # Log out from the Docker registry at the end of a job
69
+ logout : true
70
+
71
71
- name : Docker Build
72
72
run : docker build -t $registryName/$repositoryName:$tag --build-arg build_version=$tag $dockerFolderPath
73
-
73
+
74
74
- name : Docker Push
75
75
run : docker push $registryName/$repositoryName:$tag
76
76
80
80
needs : dockerBuildPush
81
81
environment :
82
82
name : dev
83
- url : https://{your_prefix} -dev.azurewebsites.net/
83
+ url : https://jo37jiy66vx2y -dev.azurewebsites.net/
84
84
85
85
steps :
86
86
- name : ' Login via Azure CLI'
90
90
91
91
- uses : azure/webapps-deploy@v2
92
92
with :
93
- app-name : ' {your_prefix} -dev'
93
+ app-name : ' jo37jiy66vx2y -dev'
94
94
images : {your_registry_name}.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}}
95
95
96
96
deploy-to-test :
99
99
needs : deploy-to-dev
100
100
environment :
101
101
name : test
102
- url : https://{your_prefix} -test.azurewebsites.net/
102
+ url : https://jo37jiy66vx2y -test.azurewebsites.net/
103
103
104
104
steps :
105
105
- uses : actions/checkout@v3
@@ -111,7 +111,7 @@ jobs:
111
111
112
112
- uses : azure/webapps-deploy@v2
113
113
with :
114
- app-name : ' {your_prefix} -test'
114
+ app-name : ' jo37jiy66vx2y -test'
115
115
images : {your_registry_name}.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}}
116
116
117
117
deploy-to-prod :
@@ -120,7 +120,7 @@ jobs:
120
120
needs : deploy-to-test
121
121
environment :
122
122
name : prod
123
- url : https://{your_prefix} -prod.azurewebsites.net/
123
+ url : https://jo37jiy66vx2y -prod.azurewebsites.net/
124
124
125
125
steps :
126
126
- uses : actions/checkout@v3
@@ -132,5 +132,5 @@ jobs:
132
132
133
133
- uses : azure/webapps-deploy@v2
134
134
with :
135
- app-name : ' {your_prefix} -prod'
136
- images : {your_registry_name} .azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}}
135
+ app-name : ' jo37jiy66vx2y -prod'
136
+ images : jo37jiy66vx2ympnpreg .azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}}
0 commit comments