Skip to content

Commit bb85370

Browse files
committed
Add deployment jobs for test and production environments in dotnet-deployment.yml
1 parent cbd0548 commit bb85370

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

.github/workflows/dotnet-deployment.yml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,44 @@ jobs:
7777
- uses: azure/webapps-deploy@v2
7878
with:
7979
app-name: "kqrfo3r42nm3u-dev"
80-
images: $registryName/techexcel/dotnetcoreapp:${{github.run_number}}
80+
images: kqrfo3r42nm3umpnpreg.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}}
81+
82+
deploy-to-test:
83+
runs-on: ubuntu-latest
84+
needs: deploy-to-dev
85+
environment:
86+
name: test
87+
url: https://kqrfo3r42nm3u-test.azurewebsites.net/
88+
89+
steps:
90+
- uses: actions/checkout@v3
91+
92+
- name: "Login via Azure CLI"
93+
uses: azure/[email protected]
94+
with:
95+
creds: ${{ secrets.AZURE_CREDENTIALS }}
96+
97+
- uses: azure/webapps-deploy@v2
98+
with:
99+
app-name: "kqrfo3r42nm3u-test"
100+
images: kqrfo3r42nm3umpnpreg.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}}
101+
102+
deploy-to-prod:
103+
runs-on: ubuntu-latest
104+
needs: deploy-to-test
105+
environment:
106+
name: prod
107+
url: https://kqrfo3r42nm3u-prod.azurewebsites.net/
108+
109+
steps:
110+
- uses: actions/checkout@v3
111+
112+
- name: "Login via Azure CLI"
113+
uses: azure/[email protected]
114+
with:
115+
creds: ${{ secrets.AZURE_CREDENTIALS }}
116+
117+
- uses: azure/webapps-deploy@v2
118+
with:
119+
app-name: "kqrfo3r42nm3u-prod"
120+
images: kqrfo3r42nm3umpnpreg.azurecr.io/techexcel/dotnetcoreapp:${{github.run_number}}

0 commit comments

Comments
 (0)