Skip to content

Commit ade212d

Browse files
committed
github infra validation fix1
1 parent 6257f9b commit ade212d

File tree

4 files changed

+34
-11
lines changed

4 files changed

+34
-11
lines changed

.github/workflows/infra-ci.yaml

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- main
77
paths:
8-
- "infra/**"
8+
- "deploy/**"
99

1010
workflow_dispatch:
1111

@@ -24,12 +24,35 @@ jobs:
2424
steps:
2525
- name: Checkout
2626
uses: actions/checkout@v4
27-
28-
- name: Build Bicep for linting
27+
- name: Filter Changes
28+
uses: dorny/paths-filter@v2
29+
id: changes
30+
with:
31+
filters: |
32+
app-service:
33+
- 'deploy/app-service'
34+
aks:
35+
- 'deploy/aks'
36+
aca:
37+
- 'deploy/aca'
38+
- name: Build App Service Bicep for linting
39+
if: steps.changes.outputs.app-service == 'true'
40+
uses: azure/CLI@v1
41+
with:
42+
inlineScript: az config set bicep.use_binary_from_path=false && az bicep build -f deploy/app-service/infra/main.bicep --stdout
43+
44+
- name: Build AKS Bicep for linting
45+
if: steps.changes.outputs.aks == 'true'
46+
uses: azure/CLI@v1
47+
with:
48+
inlineScript: az config set bicep.use_binary_from_path=false && az bicep build -f deploy/aks/infra/main.bicep --stdout
49+
50+
- name: Build AKS Bicep for linting
51+
if: steps.changes.outputs.aca == 'true'
2952
uses: azure/CLI@v1
3053
with:
31-
inlineScript: az config set bicep.use_binary_from_path=false && az bicep build -f infra/main.bicep --stdout
32-
54+
inlineScript: az config set bicep.use_binary_from_path=false && az bicep build -f deploy/aca/infra/main.bicep --stdout
55+
3356
- name: Run Microsoft Security DevOps Analysis
3457
uses: microsoft/security-devops-action@v1
3558
id: msdo

deploy/aca/azure.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
22

3-
name: azure-search-openai-demo
3+
name: azure-search-openai-demo-java-aca
44
metadata:
5-
5+
template: azure-search-openai-demo-java-aca@1.2.0-alpha
66
services:
77
api:
88
project: ../../app/backend

deploy/aks/azure.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
22

3-
name: azure-search-openai-demo
3+
name: azure-search-openai-demo-java-aks
44
metadata:
5-
5+
template: azure-search-openai-demo-java-aks@1.2.0-alpha
66
services:
77
api:
88
project: ../../app/backend

deploy/app-service/azure.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
22

3-
name: azure-search-openai-demo
3+
name: azure-search-openai-demo-java-app-service
44
metadata:
55

6-
6+
template: azure-search-openai-demo-java-app-service@1.2.0-alpha
77
services:
88
backend:
99
project: ../../app/backend

0 commit comments

Comments
 (0)