Skip to content

Commit

Permalink
ci: Change the startup of the container
Browse files Browse the repository at this point in the history
  • Loading branch information
vaerh committed Dec 12, 2024
1 parent 8443848 commit ed76391
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/module_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

0 comments on commit ed76391

Please sign in to comment.