Skip to content

Commit 0f86e17

Browse files
committed
Pipeline changes for dev and stage
- removes publishing profile - adds service account credentials to login
1 parent d0d5755 commit 0f86e17

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/dev_workflow.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
types:
77
- closed
88
workflow_dispatch:
9+
permissions:
10+
id-token: write
11+
contents: read
912

1013
jobs:
1114
Build:
@@ -29,9 +32,12 @@ jobs:
2932
name: Development
3033
runs-on: ubuntu-latest
3134
steps:
35+
- name: Login to Azure
36+
uses: azure/login@v2.0.0
37+
with:
38+
creds: ${{secrets.TDEI_CORE_AZURE_CREDS}}
3239
- name: Deploy to Dev
3340
uses: azure/webapps-deploy@v2
3441
with:
3542
app-name: ${{ secrets.AZURE_WEBAPP_NAME }}
36-
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
3743
images: ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.sha }}

.github/workflows/stage_workflow.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
types:
77
- closed
88
workflow_dispatch:
9+
permissions:
10+
id-token: write
11+
contents: read
912

1013
jobs:
1114
Build:
@@ -29,9 +32,12 @@ jobs:
2932
name: Stage
3033
runs-on: ubuntu-latest
3134
steps:
35+
- name: Login to Azure
36+
uses: azure/login@v2.0.0
37+
with:
38+
creds: ${{secrets.TDEI_CORE_AZURE_CREDS}}
3239
- name: Deploy to Stage
3340
uses: azure/webapps-deploy@v2
3441
with:
3542
app-name: ${{ secrets.AZURE_WEBAPP_NAME }}
36-
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
3743
images: ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.sha }}.

0 commit comments

Comments
 (0)