Scripts and configuration files for publishing a
kustomize
release on the release page.
Install cloud-build-local
, then run
./releasing/localbuild.sh
to build artifacts under ./dist
.
Get on an up-to-date master branch:
git fetch upstream
git checkout master
git rebase upstream/master
git tag -l
git ls-remote --tags upstream
Define the version per semver principles; it must start with v
:
version=v3.0.0-pre
Must delete the tag before re-pushing it.
Delete the tag locally:
git tag --delete $version
Delete it upstream:
# Disable push protection:
git remote set-url --push upstream [email protected]/xmlking/micro-starter-kit.git
# The empty space before the colon effectively means delete the tag.
git push upstream :refs/tags/$version
# Enable push protection:
git remote set-url --push upstream no_push
Optionally visit the release page and delete (what has now become) the draft release for that version.
git tag -a $version -m "Release $version"
Push the tag:
git push upstream $version
This triggers a job in Google Cloud Build to put a new release on the release page.
Visit the release page and edit the release notes as desired.