Skip to content

Commit

Permalink
chore: remove Helm chart, moved to Koenkk/zigbee2mqtt-chart
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Jun 1, 2024
1 parent 33d8223 commit b5fc168
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 679 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/helm_release.yaml

This file was deleted.

37 changes: 1 addition & 36 deletions .github/workflows/release_please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,41 +26,6 @@ jobs:
target-branch: dev
token: ${{secrets.GH_TOKEN}}

# we use grep,awk,sed here because the output from release-please despite being JSON, it's not valid (probably shell-escaping) and
# jq fails to parse it. Creates the output pr_branch
- name: Get the branch of the release-please PR
id: get_pr_branch
if: ${{ steps.release.outputs.prs_created == 'true' }}
run: |
BRANCH=$(echo '${{ steps.release.outputs.prs }}' | grep -o -P '\"headBranchName\":\"(.*?)\"' | awk -F':' '{print $2}' | tr -d \")
echo "pr_branch=${BRANCH}" >> $GITHUB_OUTPUT
# Checkout PR branch
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.prs_created == 'true' }}
with:
repository: koenkk/zigbee2mqtt
path: ./z2m-pr
ref: ${{ steps.get_pr_branch.outputs.pr_branch }}
token: ${{secrets.GH_TOKEN}}

- name: Add updated helm chart release versions and documentation to release PR
if: ${{ steps.release.outputs.prs_created == 'true' }}
run: |
pushd ./z2m-pr
Z2M_VERSION="$(jq -r '."."' .release-please-manifest.json)"
yq -i ".appVersion=\"${Z2M_VERSION}\"" charts/zigbee2mqtt/Chart.yaml
yq -i ".image.tag=\"${Z2M_VERSION}\"" charts/zigbee2mqtt/values.yaml
# Keep chart version in step lock with zigbee2mqtt
jq ".\"charts/zigbee2mqtt\"=\"${Z2M_VERSION}\"" .release-please-manifest.json > .release-please-manifest.json.tmp
mv .release-please-manifest.json.tmp .release-please-manifest.json
go run github.com/norwoodj/helm-docs/cmd/helm-docs@latest
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -m "chore(release): update helm-chart docs"
git push
# Checkout repos
- uses: actions/checkout@v4
with:
Expand All @@ -85,7 +50,7 @@ jobs:
MASTER_ZHC_VERSION=$(cat z2m-master/package.json | jq -r '.dependencies."zigbee-herdsman-converters"')
MASTER_ZH_VERSION=$(cat z2m-master/package.json | jq -r '.dependencies."zigbee-herdsman"')
MASTER_FRONTEND_VERSION=$(cat z2m-master/package.json | jq -r '.dependencies."zigbee2mqtt-frontend"')
wget -q -O - https://raw.githubusercontent.com/Koenkk/zigbee2mqtt/release-please--branches--dev/CHANGELOG.md > z2m/CHANGELOG.md
wget -q -O - https://raw.githubusercontent.com/Koenkk/zigbee2mqtt/release-please--branches--dev--components--zigbee2mqtt/CHANGELOG.md > z2m/CHANGELOG.md
cd z2m
npm ci
node scripts/generateChangelog.js $MASTER_Z2M_VERSION $MASTER_ZHC_VERSION $MASTER_ZH_VERSION $MASTER_FRONTEND_VERSION >> ../changelog.md
Expand Down
3 changes: 1 addition & 2 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
".": "1.37.1",
"charts/zigbee2mqtt": "1.37.1"
".": "1.37.1"
}
23 changes: 0 additions & 23 deletions charts/zigbee2mqtt/.helmignore

This file was deleted.

8 changes: 0 additions & 8 deletions charts/zigbee2mqtt/CHANGELOG.md

This file was deleted.

17 changes: 0 additions & 17 deletions charts/zigbee2mqtt/Chart.yaml

This file was deleted.

93 changes: 0 additions & 93 deletions charts/zigbee2mqtt/README.md

This file was deleted.

37 changes: 0 additions & 37 deletions charts/zigbee2mqtt/templates/_helpers.tpl

This file was deleted.

39 changes: 0 additions & 39 deletions charts/zigbee2mqtt/templates/configmap.yaml

This file was deleted.

56 changes: 0 additions & 56 deletions charts/zigbee2mqtt/templates/ingress.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions charts/zigbee2mqtt/templates/service.yaml

This file was deleted.

Loading

0 comments on commit b5fc168

Please sign in to comment.