|
5 | 5 | - main # Adjust this to the branch you want to trigger the deployment on |
6 | 6 | - dev |
7 | 7 | - demo |
| 8 | + paths: |
| 9 | + - 'infra/**' |
| 10 | + - 'App/**' |
| 11 | + - 'Deployment/**' |
| 12 | + - 'azure.yaml' |
| 13 | + - '.github/workflows/CI.yml' |
| 14 | + - '.github/workflows/test-automation.yml' |
| 15 | + - 'tests/**' |
8 | 16 | schedule: |
9 | 17 | - cron: "0 10,22 * * *" # Runs at 10:00 AM and 10:00 PM GMT |
10 | | - |
| 18 | +permissions: |
| 19 | + contents: read |
| 20 | + actions: read |
11 | 21 | env: |
12 | 22 | GPT_CAPACITY: 150 |
13 | 23 | TEXT_EMBEDDING_CAPACITY: 200 |
|
27 | 37 | - name: Checkout Code |
28 | 38 | uses: actions/checkout@v5 # Checks out your repository |
29 | 39 |
|
30 | | - - name: Install Azure CLI |
31 | | - shell: bash |
32 | | - run: | |
33 | | - curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash |
34 | | - az --version # Verify installation |
35 | | -
|
36 | 40 | - name: Install Kubernetes CLI (kubectl) |
37 | 41 | shell: bash |
38 | 42 | run: | |
@@ -136,10 +140,8 @@ jobs: |
136 | 140 | - name: Install Bicep CLI |
137 | 141 | run: az bicep install |
138 | 142 |
|
139 | | - - name: Install Azure Developer CLI |
140 | | - run: | |
141 | | - curl -fsSL https://aka.ms/install-azd.sh | bash |
142 | | - shell: bash |
| 143 | + - name: Install azd |
| 144 | + uses: Azure/setup-azd@v2 |
143 | 145 |
|
144 | 146 | - name: Set Deployment Region |
145 | 147 | run: | |
@@ -215,7 +217,7 @@ jobs: |
215 | 217 | enableRedundancy=false \ |
216 | 218 | enableScalability=false \ |
217 | 219 | createdBy="Pipeline" \ |
218 | | - tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}" |
| 220 | + tags="{'Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}" |
219 | 221 |
|
220 | 222 | - name: Get Deployment Output and extract Values |
221 | 223 | id: get_output |
@@ -348,6 +350,7 @@ jobs: |
348 | 350 |
|
349 | 351 | - name: Run Post Deployment Script |
350 | 352 | shell: pwsh |
| 353 | + continue-on-error: true |
351 | 354 | run: | |
352 | 355 | Write-Host "Running post deployment script to upload files..." |
353 | 356 | cd Deployment |
@@ -398,12 +401,6 @@ jobs: |
398 | 401 | VALID_REGION: ${{ needs.deploy.outputs.VALID_REGION }} |
399 | 402 |
|
400 | 403 | steps: |
401 | | - - name: Install Azure CLI |
402 | | - shell: bash |
403 | | - run: | |
404 | | - curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash |
405 | | - az --version # Verify installation |
406 | | - |
407 | 404 | - name: Login to Azure |
408 | 405 | shell: bash |
409 | 406 | run: | |
|
0 commit comments