Skip to content

Separate publishing to container registries with new azd publish command #306

Separate publishing to container registries with new azd publish command

Separate publishing to container registries with new azd publish command #306

Workflow file for this run

name: schema-ci
on:
pull_request:
paths:
- "schemas/**"
branches: [main]
permissions:
contents: read
jobs:
schema-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- run: npm install -g jsonlint
- name: Validate schemas JSON
run: jsonlint schemas/**/*.json -c
# NOTE: Using jsonschema2md here to ensure the schemas are valid for documentation generation.
# Since we use jsonschema2md for CI pipelines, any changes to the schemas should make sure to keep the tool happy.
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- run: pip install jsonschema2md==1.5.2
- name: Ensure v1 schema is valid for doc gen
run: |
jsonschema2md schemas/v1.0/azure.yaml.json ignoreV1.md
- name: Ensure alpha schema is valid for doc gen
run: |
jsonschema2md schemas/alpha/azure.yaml.json ignoreAlpha.md