Skip to content

Commit

Permalink
feat: update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Oct 25, 2023
1 parent ec6bd4c commit 93b4cd4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 15 deletions.
41 changes: 26 additions & 15 deletions .github/workflows/helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ name: helm

on:
push:
tags:
- 'v*'
paths:
/charts/**

jobs:
release:
permissions:
contents: write
test:
runs-on: ubuntu-latest
steps:
- name: checkout
Expand All @@ -18,7 +16,7 @@ jobs:
- name: set up helm
uses: azure/setup-helm@v3
with:
version: v3.5.0
version: v3.13.0

- uses: actions/setup-python@v4
with:
Expand All @@ -36,13 +34,26 @@ jobs:
- name: run chart-testing (install)
run: ct install --all

- name: configure git
release:
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
steps:
- name: checkout
uses: actions/checkout@v4

- name: set up helm
uses: azure/setup-helm@v3
with:
version: v3.13.0

- name: login to github container registry using helm
run: |
echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ghcr.io/snapp-incubator/soteria --username ${{ github.repository_owner }} --password-stdin
- name: save helm chart to local registry
run: |
helm chart save / ghcr.io/snapp-incubator/soteria-chart:${{ github.sha }}
- name: publish chart to acr
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: run chart-releaser
uses: helm/[email protected]
env:
CR_SKIP_EXISTING: false
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
helm chart push ghcr.io/snapp-incubator/soteria-chart:${{ github.sha }}
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: test
on:
- push

jobs:
lint:
name: lint
Expand Down

0 comments on commit 93b4cd4

Please sign in to comment.