-
Notifications
You must be signed in to change notification settings - Fork 669
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor dir structure for helm (#1360)
* refactor dir structure for helm Signed-off-by: Yuvraj <[email protected]> Signed-off-by: Haytham Abuelfutuh <[email protected]> Co-authored-by: Haytham Abuelfutuh <[email protected]>
- Loading branch information
Showing
48 changed files
with
95 additions
and
48 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 |
---|---|---|
|
@@ -7,8 +7,8 @@ on: | |
required: true | ||
|
||
jobs: | ||
goreleaser: | ||
name: Goreleaser | ||
bump-version: | ||
name: bump-version | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.bump-version.outputs.tag }} | ||
|
@@ -25,42 +25,57 @@ jobs: | |
WITH_V: true | ||
CUSTOM_TAG: ${{ github.event.inputs.version }} | ||
RELEASE_BRANCHES: master | ||
- uses: actions/checkout@v2 | ||
|
||
helm-release: | ||
name: Flyte helm release | ||
runs-on: ubuntu-latest | ||
needs: [ bump-version ] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: "0" | ||
|
||
- name: Install Helm | ||
uses: azure/setup-helm@v1 | ||
with: | ||
version: v3.4.0 | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "${{ github.actor }}" | ||
git config user.email "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>" | ||
- name: Preprare Flyte Helm Release | ||
env: | ||
VERSION: ${{ needs.bump-version.outputs.version }} | ||
REPOSITORY: "https://flyteorg.github.io/flyte" | ||
run: | | ||
make prepare_artifacts | ||
- name: Run chart-releaser | ||
uses: stefanprodan/[email protected] | ||
with: | ||
token: "${{ secrets.FLYTE_BOT_PAT }}" | ||
linting: off | ||
|
||
|
||
manifest-release: | ||
name: Flyte manifest release | ||
runs-on: ubuntu-latest | ||
needs: [ bump-version ] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: "0" | ||
|
||
- name: Preprare Flyte Release | ||
env: | ||
FLYTE_BOT_PAT: ${{ secrets.FLYTE_BOT_PAT }} | ||
VERSION: ${{ github.event.inputs.version }} | ||
VERSION: ${{ needs.bump-version.outputs.version }} | ||
run: | | ||
grep -rlZ "version:[^P]*# VERSION" ./helm/Chart.yaml | xargs -0 sed -i "s/version:[^P]*# VERSION/version: ${VERSION} # VERSION/g" | ||
sed -i "s/v0.1.10/${VERSION}/g" ./helm/README.md | ||
VERSION=$VERSION make prepare_artifacts | ||
make prepare_artifacts | ||
git stash | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
version: latest | ||
args: release --rm-dist --release-notes=CHANGELOG/CHANGELOG-${{ github.event.inputs.version }}.md | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.FLYTE_BOT_PAT }} | ||
|
||
- name: Release helm registry | ||
env: | ||
FLYTE_BOT_PAT: ${{ secrets.FLYTE_BOT_PAT }} | ||
VERSION: ${{ github.event.inputs.version }} | ||
run: | | ||
grep -rlZ "version:[^P]*# VERSION" ./helm/Chart.yaml | xargs -0 sed -i "s/version:[^P]*# VERSION/version: ${VERSION} # VERSION/g" | ||
# Commit Chart registry to github gh-pages | ||
bin/cr index --owner flyteorg --git-repo flyte --charts-repo="https://flyteorg.github.io/flyte" --push --token=${FLYTE_BOT_PAT} --release-name-template="{{ .Version }}" | ||
GITHUB_TOKEN: ${{ secrets.FLYTE_BOT_PAT }} |
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.