push to release branch instead of master
This commit is contained in:
parent
089d8ff11e
commit
b38acb906a
1 changed files with 6 additions and 5 deletions
|
@ -35,17 +35,18 @@ if [[ "$TAG" != v* ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# build and push images
|
# build and push images
|
||||||
"${SCRIPTDIR}"/make-docker-images.sh
|
#"${SCRIPTDIR}"/make-docker-images.sh
|
||||||
|
|
||||||
# update yaml
|
# update yaml
|
||||||
"${SCRIPTDIR}"/make-release-artifacts.sh
|
#"${SCRIPTDIR}"/make-release-artifacts.sh
|
||||||
|
|
||||||
# create git release / push to master
|
# create git release / push to new branch
|
||||||
|
git checkout -b "release/${TAG}"
|
||||||
git add "${SCRIPTDIR}/../release/"
|
git add "${SCRIPTDIR}/../release/"
|
||||||
git commit --allow-empty -m "Release $TAG"
|
git commit --allow-empty -m "Release $TAG"
|
||||||
log "Pushing k8s manifests to master..."
|
log "Pushing k8s manifests to release/${TAG}..."
|
||||||
git tag "$TAG"
|
git tag "$TAG"
|
||||||
|
git push --set-upstream origin "release/${TAG}"
|
||||||
git push --tags
|
git push --tags
|
||||||
git push origin master
|
|
||||||
|
|
||||||
log "Successfully tagged release $TAG."
|
log "Successfully tagged release $TAG."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue