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

Commit

Permalink
Fix copy of crds folder
Browse files Browse the repository at this point in the history
  • Loading branch information
J12934 committed Sep 29, 2020
1 parent 3dfcc92 commit 493f77e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/helm-charts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: "Install yq"
run: |
sudo snap install yq
- name: Parse Tag
- name: Parse Tag
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
- name: "Publish Helm3 Charts"
env:
Expand Down Expand Up @@ -45,8 +45,9 @@ jobs:
cd "${dir}" || exit
mv Chart.yaml helm3.Chart.yaml
mv helm2.Chart.yaml Chart.yaml
if [ ${dir} = "operator" ]
if [ "$(basename "$PWD")" = "operator" ]
then
echo "Copying CRDS to templates folder, as helm2 doesn't have native crds support."
cp -R crds templates/crds
fi
echo "Restoring Helm2 Chart and replace Helm3 Chart temporary"
Expand All @@ -57,4 +58,4 @@ jobs:
NAME=$(yq read - name < Chart.yaml)
curl --silent --show-error --user "${USERNAME}:${PASSWORD}" --data-binary "@${NAME}-${RELEASE_VERSION}.tgz" "${HELM_REGISTRY}/api/charts"
)
done
done

0 comments on commit 493f77e

Please sign in to comment.