-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: dd di cesare <[email protected]>
- Loading branch information
1 parent
9833716
commit c699002
Showing
1 changed file
with
67 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: release-helm-chart | ||
on: | ||
# TODO: The following commented lines should be used depending on the release strategy | ||
# release: | ||
# types: | ||
# - published | ||
# OR for a full release workflow | ||
# push: | ||
# tags: | ||
# - 'v*.*.*' | ||
workflow_dispatch: | ||
inputs: | ||
operatorVersion: | ||
description: Operator bundle version | ||
default: 0.0.0 | ||
type: string | ||
limitadorVersion: | ||
description: Limitador version | ||
default: latest | ||
type: string | ||
releaseId: | ||
description: Release ID | ||
default: 0 | ||
type: string | ||
|
||
jobs: | ||
chart_release: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Build the Helm Chart manifests | ||
run: | | ||
make helm-build \ | ||
VERSION=${{ inputs.operatorVersion }} \ | ||
LIMITADOR_VERSION=${{ inputs.limitadorVersion }} | ||
- name: Package Helm Chart | ||
run: | | ||
make helm-package | ||
- name: Upload package to GitHub Release | ||
run: | | ||
response = make helm-upload-package \ | ||
VERSION=${{ inputs.operatorVersion }} \ | ||
GITHUB_TOKEN=${{ secrets.HELM_WORKFLOWS_TOKEN }} \ | ||
RELEASE_ID=${{ inputs.releaseId }} | ||
echo "response: $response" >> $GITHUB_ENV | ||
- name: Sync Helm Chart with repository | ||
run: | | ||
make helm-sync-package \ | ||
VERSION=${{ inputs.operatorVersion }} \ | ||
GITHUB_TOKEN=${{ secrets.HELM_WORKFLOWS_TOKEN }} \ | ||
ASSET_ID=${{ env.response.id }} | ||
BROWSER_DOWNLOAD_URL=${{ env.response.browser_download_url }} |