Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit 138a414

Browse files
committed
Extending GitHub Acions to publish HelmCharts v2 additionaly to Helm3
1 parent 076d3d8 commit 138a414

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/helm-charts.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
done
3434
- name: "Publish Helm2 Charts"
3535
env:
36-
HELM_REGISTRY: https://charts.securecodebox.io
36+
HELM_REGISTRY: https://charts-helm2.securecodebox.io
3737
USERNAME: ${{ secrets.HELM_REGISTRY_USERNAME }}
3838
PASSWORD: ${{ secrets.HELM_REGISTRY_PASSWORD }}
3939
run: |
@@ -44,8 +44,12 @@ jobs:
4444
dir="$(dirname "${chart}")"
4545
cd "${dir}" || exit
4646
mv Chart.yaml helm3.Chart.yaml
47-
echo "Restoring Helm2 Chart and replace Helm3 Chart temporary"
4847
mv helm2.Chart.yaml Chart.yaml
48+
if [ ${dir} = "operator" ]
49+
then
50+
cp -R crds templates/crds
51+
fi
52+
echo "Restoring Helm2 Chart and replace Helm3 Chart temporary"
4953
[ ! -f helm2.requirements.lock ] || mv helm2.requirements.lock requirements.lock
5054
[ ! -f helm2.requirements.yaml ] || mv helm2.requirements.yaml requirements.yaml
5155
echo "Processing Helm2 Chart in $dir"

0 commit comments

Comments
 (0)