Skip to content

Commit 5859e53

Browse files
committed
Run mongo cli from docker
1 parent 0143aa3 commit 5859e53

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -114,18 +114,7 @@ jobs:
114114
release:
115115
needs: [ prerelease, build ]
116116
runs-on: ubuntu-latest
117-
services:
118-
mongodb:
119-
image: mongo:3.2
120-
ports:
121-
- 27017:27017
122-
123117
steps:
124-
- name: Install mongo-tools
125-
run: |
126-
wget https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2204-x86_64-100.6.1.deb
127-
sudo apt install ./mongodb-database-tools-*-100.6.1.deb
128-
129118
- name: Checkout
130119
uses: actions/checkout@v3
131120
with:

bin/release-binary.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ if [[ -z "$MONGO_URL" || -z "$MONGO_USERNAME" || -z "$MONGO_PASSWORD" || -z "$RE
1010
echo "Missing parameters..."
1111
else
1212
echo "Releasing stableNativeCliVersion: $RELEASE_VERSION"
13-
mongo "${MONGO_URL}" \
13+
echo "Releasing betaNativeCliVersion: $RELEASE_VERSION"
14+
docker run mongo:3.2 mongo "${MONGO_URL}" \
1415
--username="${MONGO_USERNAME}" \
1516
--password="${MONGO_PASSWORD}" \
17+
--quiet \
1618
--eval "db.application.updateOne({}, {\$set: { \"stableNativeCliVersion\": \"$RELEASE_VERSION\", \"betaNativeCliVersion\": \"$RELEASE_VERSION\"}});"
1719
fi

0 commit comments

Comments
 (0)