k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
468 B
15 lines
468 B
#!/bin/bash
|
|
set -euxo pipefail
|
|
|
|
KUBESPRAY_NEXT_VERSION=2.$(( ${KUBESPRAY_VERSION:3:2} + 1 ))
|
|
|
|
# Rebase PRs on master (or release branch) to get latest changes
|
|
if [[ $CI_COMMIT_REF_NAME == pr-* ]]; then
|
|
git config user.email "ci@kubespray.io"
|
|
git config user.name "CI"
|
|
if [[ -z "`git branch -a --list origin/release-$KUBESPRAY_NEXT_VERSION`" ]]; then
|
|
git pull --rebase origin master
|
|
else
|
|
git pull --rebase origin release-$KUBESPRAY_NEXT_VERSION
|
|
fi
|
|
fi
|