Skip to content

Commit

Permalink
github infra validation fix1
Browse files Browse the repository at this point in the history
  • Loading branch information
dantelmomsft committed Mar 20, 2024
1 parent 6257f9b commit ade212d
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 11 deletions.
33 changes: 28 additions & 5 deletions .github/workflows/infra-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- main
paths:
- "infra/**"
- "deploy/**"

workflow_dispatch:

Expand All @@ -24,12 +24,35 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build Bicep for linting
- name: Filter Changes
uses: dorny/paths-filter@v2
id: changes
with:
filters: |
app-service:
- 'deploy/app-service'
aks:
- 'deploy/aks'
aca:
- 'deploy/aca'
- name: Build App Service Bicep for linting
if: steps.changes.outputs.app-service == 'true'
uses: azure/CLI@v1
with:
inlineScript: az config set bicep.use_binary_from_path=false && az bicep build -f deploy/app-service/infra/main.bicep --stdout

- name: Build AKS Bicep for linting
if: steps.changes.outputs.aks == 'true'
uses: azure/CLI@v1
with:
inlineScript: az config set bicep.use_binary_from_path=false && az bicep build -f deploy/aks/infra/main.bicep --stdout

- name: Build AKS Bicep for linting
if: steps.changes.outputs.aca == 'true'
uses: azure/CLI@v1
with:
inlineScript: az config set bicep.use_binary_from_path=false && az bicep build -f infra/main.bicep --stdout
inlineScript: az config set bicep.use_binary_from_path=false && az bicep build -f deploy/aca/infra/main.bicep --stdout

- name: Run Microsoft Security DevOps Analysis
uses: microsoft/security-devops-action@v1
id: msdo
Expand Down
4 changes: 2 additions & 2 deletions deploy/aca/azure.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json

name: azure-search-openai-demo
name: azure-search-openai-demo-java-aca
metadata:
template: [email protected]
template: azure-search-openai-demo-java-aca@1.2.0-alpha
services:
api:
project: ../../app/backend
Expand Down
4 changes: 2 additions & 2 deletions deploy/aks/azure.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json

name: azure-search-openai-demo
name: azure-search-openai-demo-java-aks
metadata:
template: [email protected]
template: azure-search-openai-demo-java-aks@1.2.0-alpha
services:
api:
project: ../../app/backend
Expand Down
4 changes: 2 additions & 2 deletions deploy/app-service/azure.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json

name: azure-search-openai-demo
name: azure-search-openai-demo-java-app-service
metadata:

template: [email protected]
template: azure-search-openai-demo-java-app-service@1.2.0-alpha
services:
backend:
project: ../../app/backend
Expand Down

0 comments on commit ade212d

Please sign in to comment.