Fix mongo download link as convention changed in official repo with > 4.0

This commit is contained in:
Bastien Gerard 2021-03-03 11:30:03 +01:00
parent 3b9a167022
commit 0620ac5641
3 changed files with 10 additions and 3 deletions

View File

@ -11,8 +11,8 @@ on:
tags:
- 'v[0-9]+\.[0-9]+\.[0-9]+*'
env:
MONGODB_3_6: 3.6.13
MONGODB_4_0: 4.0.13
MONGODB_3_6: 3.6.14
MONGODB_4_0: 4.0.23
MONGODB_4_2: 4.2.12
MONGODB_4_4: 4.4.4

View File

@ -2,7 +2,14 @@
MONGODB=$1
# Mongo > 4.0 follows different name convention for download links
mongo_build=mongodb-linux-x86_64-${MONGODB}
if [[ "$MONGODB" == *"4."* ]] && [[ ! "$MONGODB" == *"4.0"* ]]; then
echo "It's there."
mongo_build=mongodb-linux-x86_64-ubuntu2004-v${MONGODB}-latest
fi
wget http://fastdl.mongodb.org/linux/$mongo_build.tgz
tar xzf $mongo_build.tgz
${PWD}/$mongo_build/bin/mongod --version

View File

@ -7,7 +7,7 @@ Development
===========
- (Fill this out as you fix issues and develop your features).
- Bugfix: manually setting SequenceField in DynamicDocument doesn't increment the counter #2471
- Add MongoDB 4.4 to CI
- Add MongoDB 4.2 and 4.4 to CI
Changes in 0.22.1
=================