Skip to content

Commit

Permalink
updated command in docker compose file comments and updated docker co…
Browse files Browse the repository at this point in the history
…mpose command in the maven workflow file
  • Loading branch information
mfaisalkhatri committed Nov 28, 2024
1 parent e65f247 commit 643b002
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
cache: maven

- name: Start restful booker service
run: docker-compose -f ${{ github.workspace }}/docker-compose-restfulbooker.yml up -d
run: docker compose -f ${{ github.workspace }}/docker-compose-restfulbooker.yml up -d

- name: Build with Maven and run tests
run: mvn clean install

- name: Stop restful booker service
run: docker-compose -f ${{ github.workspace }}/docker-compose-restfulbooker.yml down --remove-orphans
run: docker compose -f ${{ github.workspace }}/docker-compose-restfulbooker.yml down --remove-orphans

- name: Test Report
uses: dorny/test-reporter@v1
Expand Down
4 changes: 2 additions & 2 deletions docker-compose-restfulbooker.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# To execute this docker-compose yml file use `docker-compose -f docker-compose-restfulbooker.yml up -d`
# To execute this docker-compose yml file use `docker compose -f docker-compose-restfulbooker.yml up -d`
# Add the `-d` flag at the end for detached execution
# To stop the execution, hit Ctrl+C, and then `docker-compose -f docker-compose-restfulbooker.yml down`
# To stop the execution, hit Ctrl+C, and then `docker compose -f docker-compose-restfulbooker.yml down`
version: "3"
services:
restful-booker:
Expand Down

0 comments on commit 643b002

Please sign in to comment.