Skip to content

Commit

Permalink
fix: update docker-compose to docker compose due to deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Aug 19, 2024
1 parent 6a7a896 commit ce32a75
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
run: sbt ++${{ matrix.scala }} githubWorkflowCheck

- name: Start containers
run: docker-compose -f docker-compose.yml up -d
run: docker compose -f docker-compose.yml up -d

- name: Build project
run: sbt ++${{ matrix.scala }} compile scalafmtCheckAll javafmtCheckAll plugin/test
Expand All @@ -78,7 +78,7 @@ jobs:

- name: Stop containers
if: always()
run: docker-compose -f docker-compose.yml down
run: docker compose -f docker-compose.yml down

- name: Compress target directories
run: tar cf targets.tar target modules/plugin/target modules/examples/provider/target modules/examples/consumer/target project/target
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ sbt consumer/test
.Run Pact broker
[source,shell]
----
docker-compose -f docker-compose.yml up -d
docker compose -f docker-compose.yml up -d
----

.Upload Consumer Pact
Expand All @@ -85,7 +85,7 @@ sbt provider/test
.Stop Pact broker
[source,shell]
----
docker-compose -f docker-compose.yml down
docker compose -f docker-compose.yml down
----


Expand Down
4 changes: 2 additions & 2 deletions github-actions.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
ThisBuild / githubWorkflowBuild := Seq(
WorkflowStep.Run(
name = Some("Start containers"),
commands = List("docker-compose -f docker-compose.yml up -d")
commands = List("docker compose -f docker-compose.yml up -d")
),
WorkflowStep.Sbt(
name = Some("Build project"),
Expand All @@ -23,7 +23,7 @@ ThisBuild / githubWorkflowBuild := Seq(
WorkflowStep.Run(
cond = Some("always()"),
name = Some("Stop containers"),
commands = List("docker-compose -f docker-compose.yml down")
commands = List("docker compose -f docker-compose.yml down")
)
)
// Add windows-latest when https://github.com/sbt/sbt/issues/7082 is resolved
Expand Down

0 comments on commit ce32a75

Please sign in to comment.