Skip to content

Commit 85723ad

Browse files
committed
Refactor dotnet.yml to remove deployment to Azure Web App and update Azure Login action to use version 2 and use Azure credentials for authentication, include specific paths for push and pull_request events, and update Dockerfile for .NET 8
1 parent c32da31 commit 85723ad

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

.github/workflows/dotnet.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -81,30 +81,7 @@ jobs:
8181
--docker-registry-server-user ${{ secrets.ACR_USERNAME }} \
8282
--docker-registry-server-password ${{ secrets.ACR_PASSWORD }}
8383
84-
deploytodev:
85-
runs-on: ubuntu-latest
86-
needs: buildacr
87-
environment: dev
88-
89-
steps:
90-
- uses: actions/checkout@v4
91-
92-
- name: Azure Login
93-
uses: azure/login@v2
94-
with:
95-
creds: ${{ secrets.AZURE_CREDENTIALS }}
96-
97-
98-
- name: Deploy to Azure Web App
99-
run: |
100-
az webapp config container set \
101-
--name q3zpru2gmy754-dev \
102-
--resource-group ${{ secrets.AZURE_RG }} \
103-
--docker-custom-image-name ${{ env.registryName }}/${{ env.repositoryName }}:${{ env.tag }} \
104-
--docker-registry-server-url https://${{ env.registryName }} \
105-
--docker-registry-server-user ${{ secrets.ACR_USERNAME }} \
106-
--docker-registry-server-password ${{ secrets.ACR_PASSWORD }}
107-
84+
10885
deploytotest:
10986
runs-on: ubuntu-latest
11087
needs: deploytodev

0 commit comments

Comments
 (0)