Skip to content

Commit

Permalink
CI: Use docker compose instead of docker-compose
Browse files Browse the repository at this point in the history
Docker Compose v1 has been removed from GHA runners.
  • Loading branch information
amotl committed Feb 9, 2025
1 parent 5d36348 commit 069cd70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:
fetch-depth: 2

# With GHA's "services", you cannot map volumes to your codebase BEFORE checking out the codebase.
# So, let's use `docker-compose` to bring in services AFTER checking out the code.
# So, let's use `docker compose` to bring in services AFTER checking out the code.
# https://github.community/t/services-and-volumes/16313
- name: Run CrateDB
run: docker-compose --file test/provisioning/docker-compose.yml up --detach
run: docker compose --file test/provisioning/docker-compose.yml up --detach

# https://github.com/marketplace/actions/setup-php-action
- name: Setup PHP
Expand Down Expand Up @@ -77,4 +77,4 @@ jobs:
# https://github.community/t/how-do-i-get-the-logs-for-a-service/16422
- name: The job has failed
if: failure()
run: docker-compose --file test/provisioning/docker-compose.yml logs
run: docker compose --file test/provisioning/docker-compose.yml logs
4 changes: 1 addition & 3 deletions test/provisioning/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Purpose:
# Start CrateDB with custom parameters and wait for the service being available,
# even when invoked through `docker-compose up --detach`.

version: '3'
# even when invoked through `docker compose up --detach`.

services:

Expand Down

0 comments on commit 069cd70

Please sign in to comment.