Skip to content

Commit 1253756

Browse files
committed
Parametrize mongo atlas ci
1 parent 30238fd commit 1253756

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/start_local_atlas.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -eu
33

44
echo "Starting the container"
55

6-
IMAGE=mongodb/mongodb-atlas-local:latest
6+
IMAGE=${1:-mongodb/mongodb-atlas-local:latest}
77
DOCKER=$(which docker || which podman)
88

99
$DOCKER pull $IMAGE

.github/workflows/test-python-atlas.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ jobs:
5151
run: cp .github/workflows/runtests.py django_repo/tests/runtests_.py
5252
- name: Start local Atlas
5353
working-directory: .
54-
run: bash .github/workflows/start_local_atlas.sh
54+
run: bash .github/workflows/start_local_atlas.sh mongodb/mongodb-atlas-local:7
5555
- name: Run tests
5656
run: python3 django_repo/tests/runtests_.py

0 commit comments

Comments
 (0)