Support semantic version tags (#1416)
This commit is contained in:
+9
-6
@@ -44,7 +44,7 @@ Updating Fission Repo (https://github.com/fission/fission)
|
|||||||
|
|
||||||
1. cd to the top of the fission repo, create a branch:
|
1. cd to the top of the fission repo, create a branch:
|
||||||
|
|
||||||
git checkout -b vX.Y.Z
|
git checkout -b release-X.Y.Z
|
||||||
|
|
||||||
2. Change references of old version to new version in charts directory. You use replace and find all with a quick preview in your IDE.
|
2. Change references of old version to new version in charts directory. You use replace and find all with a quick preview in your IDE.
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ Updating Fission Repo (https://github.com/fission/fission)
|
|||||||
|
|
||||||
`./hack/release.sh <VERSION>`
|
`./hack/release.sh <VERSION>`
|
||||||
|
|
||||||
This script checks to make sure you're releasing from the vX.Y.Z
|
This script checks to make sure you're releasing from the release-X.Y.Z
|
||||||
branch, and that your repo is clean (no modified/staged files).
|
branch, and that your repo is clean (no modified/staged files).
|
||||||
|
|
||||||
This will take a while as it builds and pushes all images (Approx ~2-3 hours)
|
This will take a while as it builds and pushes all images (Approx ~2-3 hours)
|
||||||
@@ -61,10 +61,13 @@ Updating Fission Repo (https://github.com/fission/fission)
|
|||||||
|
|
||||||
5. As part of release script, changelog.md has been modified. Take a look at it, correct it if you want and then commit it, discard other directories etc. produced by builders after inspection.
|
5. As part of release script, changelog.md has been modified. Take a look at it, correct it if you want and then commit it, discard other directories etc. produced by builders after inspection.
|
||||||
|
|
||||||
6. Now push this vx.y.z branch to remote repo. Create a PR and merge it into master branch.
|
6. Push this release-x.y.z branch to remote repo. Create a PR and wait for CI passed.
|
||||||
|
|
||||||
a. Test build from master branch for sanity check
|
7. Now manually merge the release-x.y.z branch into master branch with Git command to prevent the commit SHA from being changed.
|
||||||
b. Make sure the master build is green
|
|
||||||
|
`git checkout master && git merge --ff-only release-<VERSION>`
|
||||||
|
|
||||||
|
8. Test build from master branch for sanity check and make sure the master build is green
|
||||||
|
|
||||||
Updating Fission Charts (https://github.com/fission/fission-charts)
|
Updating Fission Charts (https://github.com/fission/fission-charts)
|
||||||
------------------------------
|
------------------------------
|
||||||
@@ -85,7 +88,7 @@ Before you save the release - UNCHECK the "This is a pre-release" checkbox. This
|
|||||||
Updating Fission Docs (https://github.com/fission/docs.fission.io)
|
Updating Fission Docs (https://github.com/fission/docs.fission.io)
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
9. Documentatin Update
|
9. Documentation Update
|
||||||
|
|
||||||
a. Merge documentation PRs that are peer reviewed and get latest master locally.
|
a. Merge documentation PRs that are peer reviewed and get latest master locally.
|
||||||
|
|
||||||
|
|||||||
+6
-6
@@ -12,9 +12,9 @@ BUILDDIR=$(realpath $DIR)/build
|
|||||||
check_branch() {
|
check_branch() {
|
||||||
local version=$1
|
local version=$1
|
||||||
curr_branch=$(git rev-parse --abbrev-ref HEAD)
|
curr_branch=$(git rev-parse --abbrev-ref HEAD)
|
||||||
if [ $curr_branch != "v${version}" ]
|
if [ $curr_branch != "release-${version}" ]
|
||||||
then
|
then
|
||||||
echo "Not on v${version} branch."
|
echo "Not on release-${version} branch."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -150,7 +150,7 @@ push_all() {
|
|||||||
|
|
||||||
tag_and_release() {
|
tag_and_release() {
|
||||||
local version=$1
|
local version=$1
|
||||||
local gittag=$version
|
local gittag="v${version}"
|
||||||
|
|
||||||
# tag the release
|
# tag the release
|
||||||
git tag $gittag
|
git tag $gittag
|
||||||
@@ -170,7 +170,7 @@ tag_and_release() {
|
|||||||
|
|
||||||
attach_github_release_cli() {
|
attach_github_release_cli() {
|
||||||
local version=$1
|
local version=$1
|
||||||
local gittag=$version
|
local gittag="v${version}"
|
||||||
# cli
|
# cli
|
||||||
echo "Uploading osx cli"
|
echo "Uploading osx cli"
|
||||||
gothub upload \
|
gothub upload \
|
||||||
@@ -202,7 +202,7 @@ attach_github_release_cli() {
|
|||||||
|
|
||||||
attach_github_release_charts() {
|
attach_github_release_charts() {
|
||||||
local version=$1
|
local version=$1
|
||||||
local gittag=$version
|
local gittag="v${version}"
|
||||||
|
|
||||||
# helm charts
|
# helm charts
|
||||||
gothub upload \
|
gothub upload \
|
||||||
@@ -225,7 +225,7 @@ attach_github_release_charts() {
|
|||||||
|
|
||||||
attach_github_release_yamls() {
|
attach_github_release_yamls() {
|
||||||
local version=$1
|
local version=$1
|
||||||
local gittag=$version
|
local gittag="v${version}"
|
||||||
|
|
||||||
for c in fission-all fission-core
|
for c in fission-all fission-core
|
||||||
do
|
do
|
||||||
|
|||||||
Reference in New Issue
Block a user