Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

feat(release): use same version for app and chart release #242

Merged
merged 1 commit into from
Dec 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,3 @@ Thanks for taking the time to contribute!

If you're a maintainer use `npm run release` to start the release
process and follow the instructions printed to the console.

## Publishing a new chart release

If you're a maintainer use `./release-chart.sh <new-chart-version>` to start the release
process and follow the instructions printed to the console. The `<new-chart-version>` could be obtained
by bumping the chart version [here](https://github.com/godaddy/kubernetes-external-secrets/blob/master/charts/kubernetes-external-secrets/Chart.yaml#L3)
based on the changes.
36 changes: 0 additions & 36 deletions release-chart.sh

This file was deleted.

6 changes: 6 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ fi
SHA=$(git rev-parse --short HEAD)
TAG=$(git describe)

perl -i -pe "s/kubernetes-external-secrets Image tag \| \`[a-zA-Z0-9\.]*/kubernetes-external-secrets Image tag \| \`$TAG/" charts/kubernetes-external-secrets/README.md
perl -i -pe "s/tag: [a-zA-Z0-9\.]*/tag: $TAG/" charts/kubernetes-external-secrets/values.yaml
perl -i -pe "s/appVersion: [a-zA-Z0-9\.]*/appVersion: $TAG/" charts/kubernetes-external-secrets/Chart.yaml
perl -i -pe "s/version: [a-zA-Z0-9\.]*/version: $TAG/" charts/kubernetes-external-secrets/Chart.yaml
(cd charts/kubernetes-external-secrets && helm package . && helm repo index --merge ../../docs/index.yaml ./ && mv *.tgz ../../docs && mv index.yaml ../../docs)

docker build -t godaddy/kubernetes-external-secrets:$SHA .
docker tag godaddy/kubernetes-external-secrets:$SHA godaddy/kubernetes-external-secrets:$TAG
docker tag godaddy/kubernetes-external-secrets:$SHA godaddy/kubernetes-external-secrets:latest
Expand Down