push to release branch instead of master

This commit is contained in:
Daniel Sanche 2020-04-09 18:17:02 -07:00
parent 089d8ff11e
commit b38acb906a

View file

@ -35,17 +35,18 @@ if [[ "$TAG" != v* ]]; then
fi
# build and push images
"${SCRIPTDIR}"/make-docker-images.sh
#"${SCRIPTDIR}"/make-docker-images.sh
# 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 commit --allow-empty -m "Release $TAG"
log "Pushing k8s manifests to master..."
log "Pushing k8s manifests to release/${TAG}..."
git tag "$TAG"
git push --set-upstream origin "release/${TAG}"
git push --tags
git push origin master
log "Successfully tagged release $TAG."