Git checkout a specific version for testing upgrades (#4653)
This commit is contained in:
parent
82119ca923
commit
a4a35f8a4f
2 changed files with 4 additions and 2 deletions
|
@ -36,7 +36,9 @@ before_script:
|
|||
.job: &job
|
||||
tags:
|
||||
- packet
|
||||
image: quay.io/kubespray/kubespray:v2.9.0
|
||||
variables:
|
||||
KUBESPRAY_VERSION: v2.9.0
|
||||
image: quay.io/kubespray/kubespray:$KUBESPRAY_VERSION
|
||||
|
||||
.testcases: &testcases
|
||||
<<: *job
|
||||
|
|
|
@ -10,7 +10,7 @@ echo ${PWD}
|
|||
cd tests && make create-${CI_PLATFORM} -s ; cd -
|
||||
|
||||
# Check out latest tag if testing upgrade
|
||||
test "${UPGRADE_TEST}" != "false" && git fetch --all && git checkout $(git describe --tags $(git rev-list --tags --max-count=1))
|
||||
test "${UPGRADE_TEST}" != "false" && git fetch --all && git checkout "$KUBESPRAY_VERSION"
|
||||
# Checkout the CI vars file so it is available
|
||||
test "${UPGRADE_TEST}" != "false" && git checkout "${CI_BUILD_REF}" tests/files/${CI_JOB_NAME}.yml
|
||||
|
||||
|
|
Loading…
Reference in a new issue