Prefer docker compose v2
continuous-integration/drone/push Build is passing Details

This commit is contained in:
M. R 2023-04-14 12:35:01 +01:00 committed by GitHub
parent f16a4574c1
commit 3380d1a68e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -2,10 +2,10 @@
# Verifies that files passed in are valid for docker-compose
set -e
if command -v docker-compose &> /dev/null ; then
COMPOSE=docker-compose
elif command -v docker &> /dev/null && docker help compose &> /dev/null; then
if command -v docker &> /dev/null && docker help compose &> /dev/null; then
COMPOSE="docker compose"
elif command -v docker-compose &> /dev/null ; then
COMPOSE=docker-compose
else
echo "ERROR: Neither 'docker-compose' or 'docker compose' were found"
exit 1