-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (24 loc) · 849 Bytes
/
deploy.yml
File metadata and controls
30 lines (24 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Deploy to Azure
on:
push:
branches:
- main # Jab "main" branch me push karega, tab yeh trigger hoga
permissions:
id-token: write # ✅ Fix: id-token ka write permission diya
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
client-secret: ${{ secrets.AZURE_CLIENT_SECRET }} # ✅ Fix: Secret ka correct usage
auth-type: SERVICE_PRINCIPAL # ✅ Fix: OIDC hatao, SERVICE_PRINCIPAL lagao
- name: Deploy to Azure
run: |
echo "Azure Deployment Script Yahan Likho"