weblate/ci/services-down
Michal Čihař e48e6b3081 ci: use docker-compose-plugin to stop services
it is already used to start them.
2024-04-02 15:40:37 +02:00

16 lines
293 B
Bash
Executable file

#!/bin/sh
# Copyright © Michal Čihař <michal@weblate.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
set -e
if [ ! -f services-down ] ; then
cd ci
fi
filename="docker-compose-$1.yml"
docker compose --file "$filename" logs
docker compose --file "$filename" down --remove-orphans