Skip to content

Commit 90aa718

Browse files
committed
Add deployment job to Azure in dotnet-deployment.yml
1 parent 074f51f commit 90aa718

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/dotnet-deployment.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,21 @@ jobs:
6060

6161
- name: Docker Push
6262
run: docker push $registryName/$repositoryName:$tag
63+
64+
deploy-to-dev:
65+
runs-on: ubuntu-latest
66+
needs: dockerBuildPush
67+
environment:
68+
name: dev
69+
url: https://MngEnvMCAP399752-dev.azurewebsites.net/
70+
71+
steps:
72+
- name: "Login via Azure CLI"
73+
uses: azure/[email protected]
74+
with:
75+
creds: ${{ secrets.AZURE_CREDENTIALS }}
76+
77+
- uses: azure/webapps-deploy@v2
78+
with:
79+
app-name: "MngEnvMCAP399752-dev"
80+
images: $registryName/techexcel/dotnetcoreapp:${{github.run_number}}

0 commit comments

Comments
 (0)