Skip to content

Commit

Permalink
feat(release): use same version for app and chart release (external-s…
Browse files Browse the repository at this point in the history
  • Loading branch information
keweilu committed Dec 11, 2019
1 parent c4fdea6 commit 2000864
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 43 deletions.
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

0 comments on commit 2000864

Please sign in to comment.