publish json schemas as a single URL
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com> This change publishes the auto-generated JSON schemas as a single URL, so that it is consumable by a tool like VS Code. The CRD generator creates 2 files, a tar.gz for Kubeval, and another one is a JSON file. The JSON file is a combination of all schemas, put under the "oneOf" operator.
This commit is contained in:
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
@@ -61,8 +61,10 @@ jobs:
|
||||
with:
|
||||
crd: all-crds.yaml
|
||||
output: schemas
|
||||
combined_filename: crd-schemas.json
|
||||
- name: Archive the OpenAPI JSON schemas
|
||||
run: |
|
||||
mv schemas/crd-schemas.json ./output/crd-schemas.json
|
||||
tar -czvf ./output/crd-schemas.tar.gz -C schemas .
|
||||
- name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v1
|
||||
|
||||
Reference in New Issue
Block a user