Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Signed-off-by: SpiritZhou <[email protected]>
  • Loading branch information
SpiritZhou committed Feb 18, 2025
1 parent 2358eec commit 5986674
Show file tree
Hide file tree
Showing 5 changed files with 248 additions and 79 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ jobs:
- name: Verify generated Manifests are up to date
run: make verify-manifests

- name: Verify generated Scalers schema is up to date
run: make verify-scalers-schema

- name: Build
run: make build

Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,27 @@ jobs:
asset_path: keda-${{ steps.get_version.outputs.VERSION }}-crds.yaml
asset_name: keda-${{ steps.get_version.outputs.VERSION }}-crds.yaml
asset_content_type: application/x-yaml

# Upload scalers schema YAML file to GitHub release
- name: Upload scalers schema YAML file
id: upload-scalers-schema-yaml
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
asset_path: schema/generated/scalers-metadata-schema-${{ steps.get_version.outputs.VERSION }}.yaml
asset_name: keda-scalers-schema-${{ steps.get_version.outputs.VERSION }}.yaml
asset_content_type: application/x-yaml

# Upload scalers schema JSON file to GitHub release
- name: Upload scalers schema JSON file
id: upload-scalers-schema-json
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
asset_path: schema/generated/scalers-metadata-schema-${{ steps.get_version.outputs.VERSION }}.json
asset_name: keda-scalers-schema-${{ steps.get_version.outputs.VERSION }}.json
asset_content_type: application/json
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ OUTPUT_FILE_PATH ?= "schema/generated/"
OUTPUT_FILE_NAME ?= "scalers-metadata-schema"

ifneq '${VERSION}' 'main'
OUTPUT_FILE_NAME :="${OUTPUT_FILE_NAME}_v${VERSION}"
OUTPUT_FILE_NAME :="${OUTPUT_FILE_NAME}-${VERSION}"
endif

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

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

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

0 comments on commit 5986674

Please sign in to comment.