Skip to content

Commit

Permalink
Merge pull request #1737 from rksharma95/fix-marketplace-ci
Browse files Browse the repository at this point in the history
fix(CI): fix marketplace helm chart publish job
  • Loading branch information
PrimalPimmy authored Apr 23, 2024
2 parents b17d865 + ed4f84f commit b7baaf8
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/ci-marketplace-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,19 @@ jobs:
helm_chart_path: './deployments/helm/KubeArmorOperator'
helm_chart_name: 'kubearmor-operator-aws'

# workaround to mandatory subfolder for helm-gh-master action
# https://github.com/stefanprodan/helm-gh-pages/issues/23#issuecomment-854101420
- name: Move operator chart to charts subfolder
run: |
mkdir -p ./deployments/helm/charts
mv ./deployments/helm/KubeArmorOperator ./deployments/helm/charts/KubeArmorOperatorAws
- name: Publish Helm chart to KubeArmor helm repo
uses: stefanprodan/helm-gh-pages@master
with:
# Access token which can push to a different repo in the same org
token: ${{ secrets.GH_ACCESS_TOKEN }}
charts_dir: deployments/helm/KubeArmorOperator
charts_dir: deployments/helm/charts
# repo where charts would be published
owner: kubearmor
repository: charts
Expand Down Expand Up @@ -191,12 +198,19 @@ jobs:
helm_chart_path: './deployments/helm/KubeArmorOperator'
helm_chart_name: 'kubearmor-operator-oci'

# workaround to mandatory subfolder for helm-gh-master action
# https://github.com/stefanprodan/helm-gh-pages/issues/23#issuecomment-854101420
- name: Move operator chart to charts subfolder
run: |
mkdir -p ./deployments/helm/charts
mv ./deployments/helm/KubeArmorOperator ./deployments/helm/charts/KubeArmorOperatorOci
- name: Publish Helm chart to KubeArmor helm repo
uses: stefanprodan/helm-gh-pages@master
with:
# Access token which can push to a different repo in the same org
token: ${{ secrets.GH_ACCESS_TOKEN }}
charts_dir: deployments/helm/KubeArmorOperator
charts_dir: deployments/helm/charts
# repo where charts would be published
owner: kubearmor
repository: charts
Expand Down

0 comments on commit b7baaf8

Please sign in to comment.