-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from vladimir-gladkii/main
Fixed a bug in creating paths in the Helm Chart repo
- Loading branch information
Showing
3 changed files
with
9 additions
and
51 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 |
---|---|---|
|
@@ -46,40 +46,26 @@ jobs: | |
push: true | ||
tags: ${{ env.DOCKER_IMAGES }} | ||
|
||
- name: Create release dir | ||
run: mkdir -p ./release | ||
|
||
- name: Package helm chart | ||
run: | | ||
cd ./release | ||
helm package ../charts/app | ||
- name: Install dependencies | ||
run: | | ||
poetry config virtualenvs.in-project true | ||
poetry install --no-root --with dev | ||
- name: Generate openapi.yaml | ||
run: poetry run python ./tools/extract_openapi.py app.main:app --app-dir . --out ./release/openapi.yaml --app_version "${{ env.APP_VERSION }}" | ||
run: poetry run python ./tools/extract_openapi.py app.main:app --app-dir . --out ./openapi.yaml --app_version "${{ env.APP_VERSION }}" | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Create a github release | ||
run: gh release create "${{ env.APP_VERSION }}" ./release/* | ||
run: gh release create "${{ env.APP_VERSION }}" ./openapi.yaml | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
|
||
- name: Generate index.yaml | ||
run: | | ||
chmod +x ./tools/helm_chart_repo.sh | ||
./tools/helm_chart_repo.sh "${{ secrets.HELM_REPO_URL }}" | ||
- name: Publish to github pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
- name: Publish Helm charts | ||
uses: stefanprodan/helm-gh-pages@master | ||
with: | ||
github_token: ${{ github.token }} | ||
publish_dir: . | ||
publish_branch: gh-pages | ||
token: ${{ github.token }} | ||
target_dir: "./charts-repo/" |
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 was deleted.
Oops, something went wrong.