Create new Zed release channel: nightly
This commit is contained in:
parent
9d8184670a
commit
6680e1e9fe
16 changed files with 111 additions and 43 deletions
|
@ -43,8 +43,8 @@ if [[ $patch != 0 ]]; then
|
|||
echo "patch version on main should be zero"
|
||||
exit 1
|
||||
fi
|
||||
if [[ $(cat crates/zed/RELEASE_CHANNEL) != dev ]]; then
|
||||
echo "release channel on main should be dev"
|
||||
if [[ $(cat crates/zed/RELEASE_CHANNEL) != dev && $(cat crates/zed/RELEASE_CHANNEL) != nightly ]]; then
|
||||
echo "release channel on main should be dev or nightly"
|
||||
exit 1
|
||||
fi
|
||||
if git show-ref --quiet refs/tags/${preview_tag_name}; then
|
||||
|
@ -59,6 +59,7 @@ if ! git show-ref --quiet refs/heads/${prev_minor_branch_name}; then
|
|||
echo "previous branch ${minor_branch_name} doesn't exist"
|
||||
exit 1
|
||||
fi
|
||||
# TODO kb anything else for RELEASE_CHANNEL == nightly needs to be done below?
|
||||
if [[ $(git show ${prev_minor_branch_name}:crates/zed/RELEASE_CHANNEL) != preview ]]; then
|
||||
echo "release channel on branch ${prev_minor_branch_name} should be preview"
|
||||
exit 1
|
||||
|
|
|
@ -9,8 +9,11 @@ case $channel in
|
|||
preview)
|
||||
tag_suffix="-pre"
|
||||
;;
|
||||
nightly)
|
||||
tag_suffix="-nightly"
|
||||
;;
|
||||
*)
|
||||
echo "this must be run on a stable or preview release branch" >&2
|
||||
echo "this must be run on either of stable|preview|nightly release branches" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -4,6 +4,7 @@ set -eu
|
|||
source script/lib/deploy-helpers.sh
|
||||
|
||||
if [[ $# < 2 ]]; then
|
||||
# TODO kb nightly deploy?
|
||||
echo "Usage: $0 <production|staging|preview> <tag-name>"
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
@ -4,6 +4,7 @@ set -eu
|
|||
source script/lib/deploy-helpers.sh
|
||||
|
||||
if [[ $# < 2 ]]; then
|
||||
# TODO kb nightly migrations?
|
||||
echo "Usage: $0 <production|staging|preview> <tag-name>"
|
||||
exit 1
|
||||
fi
|
||||
|
@ -23,4 +24,4 @@ envsubst < crates/collab/k8s/migrate.template.yml | kubectl apply -f -
|
|||
pod=$(kubectl --namespace=${environment} get pods --selector=job-name=${ZED_MIGRATE_JOB_NAME} --output=jsonpath='{.items[0].metadata.name}')
|
||||
|
||||
echo "Job pod:" $pod
|
||||
kubectl --namespace=${environment} logs -f ${pod}
|
||||
kubectl --namespace=${environment} logs -f ${pod}
|
||||
|
|
|
@ -4,6 +4,7 @@ set -eu
|
|||
source script/lib/deploy-helpers.sh
|
||||
|
||||
if [[ $# < 1 ]]; then
|
||||
# TODO kb infra for nightly?
|
||||
echo "Usage: $0 <production|staging|preview>"
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue