From ed763919cb690dc706fa3717efaced0b85a3c985 Mon Sep 17 00:00:00 2001 From: Vaerh Date: Thu, 12 Dec 2024 23:32:11 +0300 Subject: [PATCH] ci: Change the startup of the container --- .github/workflows/module_testing.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/module_testing.yml b/.github/workflows/module_testing.yml index 8e74c468..ec74795b 100644 --- a/.github/workflows/module_testing.yml +++ b/.github/workflows/module_testing.yml @@ -25,6 +25,16 @@ jobs: - "7.16" steps: + - name: Container check + run: | + echo "Wait for the container to finish launching..." + while true; do + docker logs ${{ job.services.routeros.id }} 2>&1 | grep MikroTik && break + # docker logs ${{ job.services.routeros.id }} 2>&1 + echo "waiting..." + sleep 10 + done + - name: Check out code into the Go module directory uses: actions/checkout@v4 @@ -66,8 +76,8 @@ jobs: - 443:443 - 8728:8728 - 8729:8729 - volumes: - - /dev/net/tun:/dev/net/tun options: >- --cap-add=NET_ADMIN --entrypoint /routeros/entrypoint_with_four_interfaces.sh + --device /dev/net/tun + --device /dev/kvm