From ce32a75d511b72e9d129d4f0f3fe9f526c97d433 Mon Sep 17 00:00:00 2001 From: Yousaf Nabi Date: Mon, 19 Aug 2024 14:39:43 +0100 Subject: [PATCH] fix: update docker-compose to docker compose due to deprecation --- .github/workflows/ci.yml | 4 ++-- CONTRIBUTING.adoc | 4 ++-- github-actions.sbt | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5f21edb..f9aebb7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 diff --git a/CONTRIBUTING.adoc b/CONTRIBUTING.adoc index 7bde5f7..879841a 100644 --- a/CONTRIBUTING.adoc +++ b/CONTRIBUTING.adoc @@ -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 @@ -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 ---- diff --git a/github-actions.sbt b/github-actions.sbt index a7d0e4d..44b4129 100644 --- a/github-actions.sbt +++ b/github-actions.sbt @@ -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"), @@ -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