60
60
run : docker build -t $registryName/$repositoryName:$tag --build-arg build_version=$tag $dockerFolderPath
61
61
62
62
- 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
+
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
+
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
+
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}}
0 commit comments