Change ci.yml so it doesn't try to create DinD container if it's already created
Some checks failed
Some checks failed
This commit is contained in:
parent
c400f62e81
commit
08add38c14
1 changed files with 8 additions and 0 deletions
|
@ -49,6 +49,14 @@ jobs:
|
|||
# Verify DinD is still working
|
||||
docker exec ci-dind docker version
|
||||
fi
|
||||
|
||||
# If container exists but is not running, start it
|
||||
if docker ps -a --format "table {{.Names}}\t{{.Status}}" | grep -q "^ci-dind.*Exited\|^ci-dind.*Created"; then
|
||||
echo "DinD container exists but is not running, starting it..."
|
||||
docker start ci-dind
|
||||
# Wait for DinD to be ready
|
||||
timeout 60 bash -c 'until docker exec ci-dind docker version; do sleep 2; done'
|
||||
fi
|
||||
|
||||
- name: Checkout code to DinD container
|
||||
run: |
|
||||
|
|
Loading…
Add table
Reference in a new issue