This repository has been archived by the owner on Jan 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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
John Doe
committed
Apr 20, 2022
1 parent
cd416a6
commit d000505
Showing
1 changed file
with
21 additions
and
8 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 |
---|---|---|
|
@@ -3,19 +3,14 @@ on: | |
push: | ||
|
||
jobs: | ||
release-chart: | ||
test: | ||
runs-on: ubuntu-latest | ||
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: Set up Helm | ||
uses: azure/setup-helm@v1 | ||
with: | ||
|
@@ -25,8 +20,26 @@ jobs: | |
working-directory: helm/sni-router | ||
run: helm lint ./ | ||
|
||
- name: Template and default values check | ||
working-directory: helm/sni-router | ||
run: helm template ./ | ||
|
||
release-chart: | ||
runs-on: ubuntu-latest | ||
needs: ["test"] | ||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | ||
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: Publish Helm chart | ||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | ||
uses: stefanprodan/helm-gh-pages@master | ||
with: | ||
token: "${{ secrets.GH_RW_TOKEN }}" | ||
|
@@ -40,4 +53,4 @@ jobs: | |
commit_email: "${{ env.GITHUB_ACTOR }}@users.noreply.github.com" | ||
|
||
app_version: "${{github.ref_name}}" | ||
chart_version: "${{github.ref_name}}" | ||
chart_version: "${{github.ref_name}}" |