generated from kedacore/github-template
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
219 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
container: ghcr.io/kedacore/build-tools:1.19.5 | ||
container: ghcr.io/kedacore/keda-tools:1.20.5 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
|
@@ -19,6 +19,11 @@ jobs: | |
run: | | ||
echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} | ||
- name: Release Deployment YAML file | ||
run: make release | ||
env: | ||
VERSION: ${{ steps.get_version.outputs.VERSION }} | ||
|
||
- name: Login to GHCR | ||
uses: docker/login-action@v2 | ||
with: | ||
|
@@ -36,3 +41,34 @@ jobs: | |
run: make publish-multiarch | ||
env: | ||
VERSION: ${{ steps.get_version.outputs.VERSION }} | ||
|
||
# Get release information to determine id of the current release | ||
- name: Get Release | ||
id: get-release-info | ||
uses: bruceadams/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Upload deployment YAML file to GitHub release | ||
- name: Upload Deployment YAML file | ||
id: upload-deployment-yaml | ||
uses: actions/upload-release-asset@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-http-add-on-${{ steps.get_version.outputs.VERSION }}.yaml | ||
asset_path: keda-http-add-on-${{ steps.get_version.outputs.VERSION }}.yaml | ||
asset_name: keda-http-add-on-${{ steps.get_version.outputs.VERSION }}.yaml | ||
asset_content_type: application/x-yaml | ||
|
||
# Upload CRD deployment YAML file to GitHub release | ||
- name: Upload Deployment YAML file | ||
id: upload-crd-deployment-yaml | ||
uses: actions/upload-release-asset@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-http-add-on-${{ steps.get_version.outputs.VERSION }}-crds.yaml | ||
asset_path: keda-http-add-on-${{ steps.get_version.outputs.VERSION }}-crds.yaml | ||
asset_name: keda-http-add-on-${{ steps.get_version.outputs.VERSION }}-crds.yaml | ||
asset_content_type: application/x-yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ jobs: | |
validate: | ||
name: validate - ${{ matrix.name }} | ||
runs-on: ${{ matrix.runner }} | ||
container: ghcr.io/kedacore/build-tools:1.19.5 | ||
container: ghcr.io/kedacore/keda-tools:1.20.5 | ||
strategy: | ||
matrix: | ||
include: | ||
|
@@ -72,7 +72,7 @@ jobs: | |
python-version: 3.x | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.19 | ||
go-version: "1.20" | ||
- name: Get golangci | ||
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.52.2 | ||
- uses: pre-commit/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.