Skip to content

Commit 5da1498

Browse files
committed
added self hosted runner
1 parent 36c9477 commit 5da1498

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/main_basicwebappusinggithub.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
build:
14-
runs-on: windows-latest
14+
runs-on: self-hosted
1515
permissions:
1616
contents: read #This is required for actions/checkout
1717

@@ -36,27 +36,27 @@ jobs:
3636
path: ${{env.DOTNET_ROOT}}/myapp
3737

3838
deploy:
39-
runs-on: windows-latest
39+
runs-on: self-hosted
4040
needs: build
41-
environment:
42-
name: 'Production'
41+
environment:
42+
name: 'Production'
4343
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
44-
permissions:
45-
id-token: write #This is required for requesting the JWT
46-
contents: read #This is required for actions/checkout
44+
permissions:
45+
id-token: write #This is required for requesting the JWT
46+
contents: read #This is required for actions/checkout
4747

4848
steps:
4949
- name: Download artifact from build job
5050
uses: actions/download-artifact@v4
5151
with:
5252
name: .net-app
53-
54-
- name: Login to Azure
55-
uses: azure/login@v2
56-
with:
57-
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_E497B02990D04A18AEC57EB2994ADDA9 }}
58-
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_7C7BAB7D5DDA44A58D6FA80BFD5CFB4F }}
59-
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_DD2A1A7FD26449B9B33A297AA5ABD211 }}
53+
54+
- name: Login to Azure
55+
uses: azure/login@v2
56+
with:
57+
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_E497B02990D04A18AEC57EB2994ADDA9 }}
58+
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_7C7BAB7D5DDA44A58D6FA80BFD5CFB4F }}
59+
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_DD2A1A7FD26449B9B33A297AA5ABD211 }}
6060

6161
- name: Deploy to Azure Web App
6262
id: deploy-to-webapp

0 commit comments

Comments
 (0)