mirror of
https://github.com/tcivie/meshtastic-metrics-exporter.git
synced 2025-01-11 22:07:35 -08:00
Update main.yml
This commit is contained in:
parent
c9390ee417
commit
45f47d107a
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
|
@ -12,7 +12,7 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
|
||||
- name: Start Docker Compose
|
||||
run: docker-compose up -d
|
||||
run: docker compose up -d
|
||||
|
||||
- name: Wait for containers to start
|
||||
run: sleep 60 # 1 Minute
|
||||
|
@ -23,11 +23,11 @@ jobs:
|
|||
|
||||
for service in "${services[@]}"
|
||||
do
|
||||
container_id=$(docker-compose ps -q $service)
|
||||
container_id=$(docker compose ps -q $service)
|
||||
|
||||
if [ -z "$container_id" ]; then
|
||||
echo "Error: Container for $service not found"
|
||||
docker-compose logs $service
|
||||
docker compose logs $service
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -37,14 +37,14 @@ jobs:
|
|||
if [ "$status" != "running" ]; then
|
||||
echo "Error: Container $service ($container_id) is not running. Current status: $status"
|
||||
echo "Last logs for $service:"
|
||||
docker-compose logs --tail=50 $service
|
||||
docker compose logs --tail=50 $service
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$restarts" -gt 0 ]; then
|
||||
echo "Error: Container $service ($container_id) has restarted $restarts times"
|
||||
echo "Last logs for $service:"
|
||||
docker-compose logs --tail=50 $service
|
||||
docker compose logs --tail=50 $service
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -65,4 +65,4 @@ jobs:
|
|||
|
||||
- name: Clean up
|
||||
if: always()
|
||||
run: docker-compose down -v
|
||||
run: docker compose down -v
|
||||
|
|
Loading…
Reference in a new issue