Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/spring-mongoDB-example.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: spring-mongoDB-example CI Build
name: spring-mongodb-example CI Build

on:
pull_request:
branches: [master]
paths:
- "spring-mongoDB-example/**"
- "spring-mongodb-example/**"
types:
- opened
- synchronize
Expand All @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: spring-mongoDB-example
working-directory: spring-mongodb-example
strategy:
matrix:
distribution: [ 'temurin' ]
Expand Down Expand Up @@ -49,13 +49,13 @@ jobs:
id: services
run: |
echo "services<<EOF" >> $GITHUB_OUTPUT
docker compose -f ./spring-mongoDB-example/compose.yaml config --services >> $GITHUB_OUTPUT
docker compose -f ./spring-mongodb-example/compose.yaml config --services >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT

- name: Start containers with Compose Action
uses: hoverkraft-tech/compose-action@v2.4.3
with:
compose-file: './spring-mongoDB-example/compose.yaml'
compose-file: './spring-mongodb-example/compose.yaml'
services: ${{ steps.services.outputs.services }}
up-flags: '--build'
down-flags: '--volumes'
Expand Down
2 changes: 1 addition & 1 deletion spring-mongodb-example/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
MONGODB_URI: mongodb://admin:admin@mongo-database:27017/config?authSource=admin

mongo-database:
image: mongo:7.0
image: mongo:8.2
container_name: mongo-database
environment:
MONGO_INITDB_ROOT_USERNAME: admin
Expand Down