Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

BC-6654 - Update mongo to v5 #453

Merged
merged 20 commits into from
Apr 17, 2024
Merged
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
env:
DOCKER_ID: ${{ secrets.DOCKER_ID }}
MY_DOCKER_PASSWORD: ${{ secrets.MY_DOCKER_PASSWORD }}
run: curl "https://raw.githubusercontent.com/hpi-schul-cloud/end-to-end-tests/main/scripts/ci/fetch.github.sh" | bash -s ${{ inputs.e2e_tag }}
run: curl "https://raw.githubusercontent.com/hpi-schul-cloud/end-to-end-tests/BC-6654-update-mongodb/scripts/ci/fetch.github.sh" | bash -s ${{ inputs.e2e_tag }}
- uses: actions/upload-artifact@v3
name: upload result
if: always()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e_call.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
env:
DOCKER_ID: ${{ secrets.DOCKER_ID }}
MY_DOCKER_PASSWORD: ${{ secrets.MY_DOCKER_PASSWORD }}
run: curl "https://raw.githubusercontent.com/hpi-schul-cloud/end-to-end-tests/main/scripts/ci/fetch.github.sh" | bash -s ${{ matrix.cases }}
run: curl "https://raw.githubusercontent.com/hpi-schul-cloud/end-to-end-tests/BC-6654-update-mongodb/scripts/ci/fetch.github.sh" | bash -s ${{ matrix.cases }}
- uses: actions/upload-artifact@v3
name: upload result
if: always()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e_courses_and_topics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
tag-courses_and_topics:
uses: hpi-schul-cloud/end-to-end-tests/.github/workflows/e2e.yml@main
uses: hpi-schul-cloud/end-to-end-tests/.github/workflows/e2e.yml@BC-6654-update-mongodb
with:
ref: ${{ github.ref }}
e2e_tag: courses_and_topics
2 changes: 1 addition & 1 deletion .github/workflows/e2e_management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
tag-managment:
uses: hpi-schul-cloud/end-to-end-tests/.github/workflows/e2e.yml@main
uses: hpi-schul-cloud/end-to-end-tests/.github/workflows/e2e.yml@BC-6654-update-mongodb
with:
ref: ${{ github.ref }}
e2e_tag: management
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e_navi_user_settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
tag-navi_user_settings:
uses: hpi-schul-cloud/end-to-end-tests/.github/workflows/e2e.yml@main
uses: hpi-schul-cloud/end-to-end-tests/.github/workflows/e2e.yml@BC-6654-update-mongodb
with:
ref: ${{ github.ref }}
e2e_tag: navi_user_settings
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e_tasks_and_other.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
tag-tasks_and_other:
uses: hpi-schul-cloud/end-to-end-tests/.github/workflows/e2e.yml@main
uses: hpi-schul-cloud/end-to-end-tests/.github/workflows/e2e.yml@BC-6654-update-mongodb
with:
ref: ${{ github.ref }}
e2e_tag: tasks_and_other
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e_unstable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
tag-unstable:
uses: hpi-schul-cloud/end-to-end-tests/.github/workflows/e2e.yml@main
uses: hpi-schul-cloud/end-to-end-tests/.github/workflows/e2e.yml@BC-6654-update-mongodb
with:
ref: ${{ github.ref }}
e2e_tag: unstable
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/end-to-end-tests.github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ before(){

echo "CONTAINER STARTUP"
cd docker-compose
docker compose -f compose-files/docker-compose.yml up -d mongodb mongodb-secondary mongodb-arbiter redis rabbit mailcatcher selenium-hub calendar-init
docker compose -f compose-files/docker-compose.yml up -d mongodb-primary mongodb-secondary mongodb-arbiter redis rabbit mailcatcher selenium-hub calendar-init
sleep 10
docker compose -f compose-files/docker-compose.yml up -d chrome mongosetup maildrop calendar-postgres
sleep 15
Expand Down
6 changes: 3 additions & 3 deletions scripts/ci/fetch.github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
set -e

# install dependencies
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 4B7C549A058F8B6B
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv B00A0BD1E2C63C11
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt update
sudo apt install -y apt-transport-https ca-certificates curl git mongodb-org-tools
sudo apt install -y apt-transport-https ca-certificates curl git mongodb-database-tools

if [[ -z "$BRANCH_NAME" ]]; then
echo "Must provide BRANCH_NAME in environment"
Expand Down
Loading