mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-22 15:41:47 +00:00
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:
parent
e72214e266
commit
716b41e91b
2 changed files with 3 additions and 0 deletions
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
|
|
@ -61,8 +61,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
crd: all-crds.yaml
|
crd: all-crds.yaml
|
||||||
output: schemas
|
output: schemas
|
||||||
|
combined_filename: crd-schemas.json
|
||||||
- name: Archive the OpenAPI JSON schemas
|
- name: Archive the OpenAPI JSON schemas
|
||||||
run: |
|
run: |
|
||||||
|
mv schemas/crd-schemas.json ./output/crd-schemas.json
|
||||||
tar -czvf ./output/crd-schemas.tar.gz -C schemas .
|
tar -czvf ./output/crd-schemas.tar.gz -C schemas .
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v1
|
uses: goreleaser/goreleaser-action@v1
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,7 @@ release:
|
||||||
- glob: ./output/crd-schemas.tar.gz
|
- glob: ./output/crd-schemas.tar.gz
|
||||||
- glob: ./output/manifests.tar.gz
|
- glob: ./output/manifests.tar.gz
|
||||||
- glob: ./output/install.yaml
|
- glob: ./output/install.yaml
|
||||||
|
- glob: ./output/crd-schemas.json
|
||||||
dockers:
|
dockers:
|
||||||
- image_templates:
|
- image_templates:
|
||||||
- 'fluxcd/flux-cli:{{ .Tag }}-amd64'
|
- 'fluxcd/flux-cli:{{ .Tag }}-amd64'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue