diff --git a/.github/scripts/validate_bicep.py b/.github/scripts/validate_bicep.py index fc57dfb4b..be1000433 100644 --- a/.github/scripts/validate_bicep.py +++ b/.github/scripts/validate_bicep.py @@ -46,6 +46,11 @@ def validate_file(f): stderr = result.stderr.decode("utf-8") exitcode = result.returncode + warning_prefix = "WARNING: The following experimental Bicep features" + if stderr.startswith(warning_prefix): + stderr = "" + exitcode = 0 + if exitcode != 0: failures.append(f) print(stderr, flush=True) diff --git a/.github/workflows/validate-bicep.yaml b/.github/workflows/validate-bicep.yaml index 5c5b503bc..d3ce22630 100644 --- a/.github/workflows/validate-bicep.yaml +++ b/.github/workflows/validate-bicep.yaml @@ -27,12 +27,10 @@ jobs: steps: - name: Check out repo uses: actions/checkout@v4 - - name: Parse release version and set environment variables - run: python ./.github/scripts/get_docs_version.py - - name: Download rad-bicep + - name: Setup and verify bicep CLI run: | - oras pull ghcr.io/radius-project/radius/bicep/rad-bicep/linux-x64:latest - chmod +x rad-bicep - ./rad-bicep --version + curl -Lo rad-bicep https://github.com/Azure/bicep/releases/latest/download/bicep-linux-x64 + chmod +x ./rad-bicep + bicep --version - name: Verify Bicep files run: python ./.github/scripts/validate_bicep.py diff --git a/docs/bicepconfig.json b/docs/bicepconfig.json new file mode 100644 index 000000000..65aa58442 --- /dev/null +++ b/docs/bicepconfig.json @@ -0,0 +1,11 @@ +{ + "experimentalFeaturesEnabled": { + "extensibility": true, + "extensionRegistry": true, + "dynamicTypeLoading": true + }, + "extensions": { + "radius": "br:biceptypes.azurecr.io/radius:latest", + "aws": "br:biceptypes.azurecr.io/aws:latest" + } +} \ No newline at end of file