Skip to content

Commit 5986674

Browse files
author
SpiritZhou
committed
Update
Signed-off-by: SpiritZhou <iammrzhouzhenghanzhou@gmail.com>
1 parent 2358eec commit 5986674

File tree

5 files changed

+248
-79
lines changed

5 files changed

+248
-79
lines changed

.github/workflows/pr-validation.yml

+3
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ jobs:
6262
- name: Verify generated Manifests are up to date
6363
run: make verify-manifests
6464

65+
- name: Verify generated Scalers schema is up to date
66+
run: make verify-scalers-schema
67+
6568
- name: Build
6669
run: make build
6770

.github/workflows/release-build.yml

+24
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,27 @@ jobs:
130130
asset_path: keda-${{ steps.get_version.outputs.VERSION }}-crds.yaml
131131
asset_name: keda-${{ steps.get_version.outputs.VERSION }}-crds.yaml
132132
asset_content_type: application/x-yaml
133+
134+
# Upload scalers schema YAML file to GitHub release
135+
- name: Upload scalers schema YAML file
136+
id: upload-scalers-schema-yaml
137+
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1
138+
env:
139+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
140+
with:
141+
upload_url: https://uploads.github.com/repos/kedacore/keda/releases/${{ steps.get-release-info.outputs.id }}/assets?name=keda-scalers-schema-${{ steps.get_version.outputs.VERSION }}.yaml
142+
asset_path: schema/generated/scalers-metadata-schema-${{ steps.get_version.outputs.VERSION }}.yaml
143+
asset_name: keda-scalers-schema-${{ steps.get_version.outputs.VERSION }}.yaml
144+
asset_content_type: application/x-yaml
145+
146+
# Upload scalers schema JSON file to GitHub release
147+
- name: Upload scalers schema JSON file
148+
id: upload-scalers-schema-json
149+
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1
150+
env:
151+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
152+
with:
153+
upload_url: https://uploads.github.com/repos/kedacore/keda/releases/${{ steps.get-release-info.outputs.id }}/assets?name=keda-scalers-schema-${{ steps.get_version.outputs.VERSION }}.json
154+
asset_path: schema/generated/scalers-metadata-schema-${{ steps.get_version.outputs.VERSION }}.json
155+
asset_name: keda-scalers-schema-${{ steps.get_version.outputs.VERSION }}.json
156+
asset_content_type: application/json

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ OUTPUT_FILE_PATH ?= "schema/generated/"
7171
OUTPUT_FILE_NAME ?= "scalers-metadata-schema"
7272

7373
ifneq '${VERSION}' 'main'
74-
OUTPUT_FILE_NAME :="${OUTPUT_FILE_NAME}_v${VERSION}"
74+
OUTPUT_FILE_NAME :="${OUTPUT_FILE_NAME}-${VERSION}"
7575
endif
7676

7777
##################################################
@@ -250,7 +250,7 @@ publish-webhooks-multiarch: ## Build and push multi-arch Docker image for KEDA H
250250

251251
publish-multiarch: publish-controller-multiarch publish-adapter-multiarch publish-webhooks-multiarch ## Push multi-arch Docker images on to Container Registry (default: ghcr.io).
252252

253-
release: manifests kustomize set-version ## Produce new KEDA release in keda-$(VERSION).yaml file.
253+
release: manifests kustomize set-version generate-scalers-schema## Produce new KEDA release in keda-$(VERSION).yaml file.
254254
cd config/manager && \
255255
$(KUSTOMIZE) edit set image ghcr.io/kedacore/keda=${IMAGE_CONTROLLER}
256256
cd config/metrics-server && \

0 commit comments

Comments
 (0)