Skip to content

Commit 675e523

Browse files
committed
added code and utility function
Signed-off-by: kumarabd <abishekkumar92@gmail.com>
1 parent cd15d26 commit 675e523

1 file changed

Lines changed: 22 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +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 chart-testing (lint)
47-
# uses: helm/chart-testing-action@master
48-
# with:
49-
# command: lint
50-
# config: .github/workflows/ct.yaml
51-
# - name: Configure Git
52-
# run: |
53-
# git config user.name "$GITHUB_ACTOR"
54-
# git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
55-
- name: Run chart-releaser
56-
uses: helm/chart-releaser-action@v1.0.0
57-
env:
58-
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/workflows/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 }}"

0 commit comments

Comments
 (0)