Skip to content

Commit 1c10aa0

Browse files
committed
added helm testing
Signed-off-by: kumarabd <abishekkumar92@gmail.com>
1 parent 06741a4 commit 1c10aa0

2 files changed

Lines changed: 25 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,25 @@ jobs:
4343
docker push ${{ secrets.IMAGE_NAME }}:${GITHUB_REF/refs\/tags\//}
4444
docker tag ${{ secrets.IMAGE_NAME }}:smi ${{ secrets.IMAGE_NAME }}:smi-${GITHUB_REF/refs\/tags\//}
4545
docker push ${{ secrets.IMAGE_NAME }}:smi-${GITHUB_REF/refs\/tags\//}
46-
- name: Run helm chart-releaser
47-
uses: helm/chart-releaser-action@v1.0.0
48-
env:
49-
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
46+
helm:
47+
name: Helm charts publish
48+
runs-on: ubuntu-latest
49+
steps:
50+
- name: Checkout code
51+
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master') && success()
52+
uses: actions/checkout@master
53+
with:
54+
fetch-depth: 1
55+
- name: Run chart-testing (lint)
56+
uses: helm/chart-testing-action@master
57+
with:
58+
command: lint
59+
config: .github/ct.yaml
60+
- name: Configure Git
61+
run: |
62+
git config user.name "$GITHUB_ACTOR"
63+
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
64+
- name: Run chart-releaser
65+
uses: helm/chart-releaser-action@v1.0.0
66+
env:
67+
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/ct.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
helm-extra-args: --timeout 600
2+
check-version-increment: true
3+
debug: true

0 commit comments

Comments
 (0)