-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(workflows/main-chart): publish to mayastor-chart-donotuse repo
Signed-off-by: Niladri Halder <[email protected]>
- Loading branch information
Showing
1 changed file
with
12 additions
and
3 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 |
---|---|---|
|
@@ -11,21 +11,30 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: cachix/install-nix-action@v22 | ||
- name: Pre-populate nix-shell | ||
run: | | ||
export NIX_PATH=nixpkgs=$(jq '.nixpkgs.url' nix/sources.json -r) | ||
echo "NIX_PATH=$NIX_PATH" >> $GITHUB_ENV | ||
nix-shell --pure --run "echo" ./scripts/helm/shell.nix | ||
- name: Update loglevel to debug | ||
- name: Update chart | ||
run: | | ||
# Update logLevel to 'debug' | ||
sed -Ei "s~(logLevel: .*)~logLevel: debug~" chart/values.yaml | ||
- name: Prepare chart for publishing | ||
# Update repo url/name across all chart files | ||
sed -i "s/mayastor-extensions/mayastor-chart-donotuse/g" chart/*.* | ||
- name: Check if the chart is publishable | ||
run: | | ||
branch="${{ github.ref_name }}" | ||
nix-shell --pure --run "./scripts/helm/publish-chart-yaml.sh --app-tag "0.0.0-$branch"" ./scripts/helm/shell.nix | ||
nix-shell --pure --run "./scripts/helm/publish-chart-yaml.sh --check-chart "$branch"" ./scripts/helm/shell.nix | ||
- name: Publish Mayastor Helm chart | ||
uses: stefanprodan/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
charts_dir: . | ||
charts_url: https://openebs.github.io/mayastor-chart-donotuse | ||
owner: openebs | ||
repository: mayastor-chart-donotuse | ||
branch: gh-pages |