This repository was archived by the owner on Oct 14, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 - name : " Install yq"
1212 run : |
1313 sudo snap install yq
14- - name : Parse Tag
14+ - name : Parse Tag
1515 run : echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
1616 - name : " Publish Helm3 Charts"
1717 env :
4545 cd "${dir}" || exit
4646 mv Chart.yaml helm3.Chart.yaml
4747 mv helm2.Chart.yaml Chart.yaml
48- if [ ${dir} = "operator" ]
48+ if [ "$(basename "$PWD")" = "operator" ]
4949 then
50+ echo "Copying CRDS to templates folder, as helm2 doesn't have native crds support."
5051 cp -R crds templates/crds
5152 fi
5253 echo "Restoring Helm2 Chart and replace Helm3 Chart temporary"
5758 NAME=$(yq read - name < Chart.yaml)
5859 curl --silent --show-error --user "${USERNAME}:${PASSWORD}" --data-binary "@${NAME}-${RELEASE_VERSION}.tgz" "${HELM_REGISTRY}/api/charts"
5960 )
60- done
61+ done
You can’t perform that action at this time.
0 commit comments