Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

Commit

Permalink
ci: Improve workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
John Doe committed Apr 20, 2022
1 parent cd416a6 commit d000505
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}"
Expand All @@ -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}}"

0 comments on commit d000505

Please sign in to comment.